| |
|
| org.apache.commons.jexl.JexlTest
JexlTest | public class JexlTest extends TestCase (Code) | | Simple testcases
since: 1.0 author: Geir Magnusson Jr. version: $Id: JexlTest.java 391888 2006-04-06 03:34:59Z dion $ |
GET_METHOD_ARRAY | final protected static String[] GET_METHOD_ARRAY(Code) | | |
GET_METHOD_ARRAY2 | final protected static String[][] GET_METHOD_ARRAY2(Code) | | |
GET_METHOD_STRING | final protected static String GET_METHOD_STRING(Code) | | |
METHOD_STRING | final protected static String METHOD_STRING(Code) | | |
assertExpression | protected void assertExpression(JexlContext jc, String expression, Object expected) throws Exception(Code) | | Asserts that the given expression returns the given value when applied to the
given context
|
main | public static void main(String[] args) throws Exception(Code) | | Helps in debugging the testcases when working with it
|
suite | public static Test suite()(Code) | | |
testAntPropertiesWithMethods | public void testAntPropertiesWithMethods() throws Exception(Code) | | |
testArrayAccess | public void testArrayAccess() throws Exception(Code) | | test a simple method expression
|
testBadParse | public void testBadParse() throws Exception(Code) | | Make sure bad syntax throws ParseException
throws: Exception - on errors |
testBlankStrings | public void testBlankStrings() throws Exception(Code) | | test some blank strings
|
testBooleanShortCircuitAnd | public void testBooleanShortCircuitAnd() throws Exception(Code) | | Test that 'and' only evaluates the second item if needed
throws: Exception - if there are errors |
testBooleanShortCircuitOr | public void testBooleanShortCircuitOr() throws Exception(Code) | | Test that 'or' only evaluates the second item if needed
throws: Exception - if there are errors |
testCalculations | public void testCalculations() throws Exception(Code) | | test some simple mathematical calculations
|
testCharAtBug | public void testCharAtBug() throws Exception(Code) | | Attempts to recreate bug http://jira.werken.com/ViewIssue.jspa?key=JELLY-8
|
testCoercionWithComparisionOperators | public void testCoercionWithComparisionOperators() throws Exception(Code) | | |
testComparisons | public void testComparisons() throws Exception(Code) | | test some simple conditions
|
testConditions | public void testConditions() throws Exception(Code) | | test some simple conditions
|
testDoubleArrays | public void testDoubleArrays() throws Exception(Code) | | test some simple double array lookups
|
testEmptyDottedVariableName | public void testEmptyDottedVariableName() throws Exception(Code) | | |
testEmptySubListOfMap | public void testEmptySubListOfMap() throws Exception(Code) | | |
testIntProperty | public void testIntProperty() throws Exception(Code) | | test the use of an int based property
|
testLogicExpressions | public void testLogicExpressions() throws Exception(Code) | | test some blank strings
|
testMapDot | public void testMapDot() throws Exception(Code) | | test the use of dot notation to lookup map entries
|
testMethod | public void testMethod() throws Exception(Code) | | test a simple method expression
|
testNegativeIntComparison | public void testNegativeIntComparison() throws Exception(Code) | | test the -1 comparison bug
|
testNotConditions | public void testNotConditions() throws Exception(Code) | | test some simple conditions
|
testNotConditionsWithDots | public void testNotConditionsWithDots() throws Exception(Code) | | GMJ : disabled - need to fix
test some simple conditions
|
testNull | public void testNull() throws Exception(Code) | | test some null conditions
|
testProperty | public void testProperty() throws Exception(Code) | | test a simple property expression
|
testStaticMethodInvocation | public void testStaticMethodInvocation() throws Exception(Code) | | Ensures static methods on objects can be called.
|
testStaticMethodInvocationOnClasses | public void testStaticMethodInvocationOnClasses() throws Exception(Code) | | |
testStringConcatenation | public void testStringConcatenation() throws Exception(Code) | | Simple test of '+' as a string concatenation operator
throws: Exception - |
testStringLiterals | public void testStringLiterals() throws Exception(Code) | | Tests string literals
|
testStringMethods | public void testStringMethods() throws Exception(Code) | | test some String method calls
|
testUnaryMinus | public void testUnaryMinus() throws Exception(Code) | | test some simple mathematical calculations
|
testVariableNames | public void testVariableNames() throws Exception(Code) | | test variables with underscore names
|
|
|
|