org.apache.commons.jexl2
Class MethodTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.jexl2.JexlTestCase
              extended by org.apache.commons.jexl2.MethodTest
All Implemented Interfaces:
junit.framework.Test

public class MethodTest
extends JexlTestCase

Tests for calling methods on objects

Since:
2.0

Nested Class Summary
static class MethodTest.ContextualFunctor
           
static class MethodTest.EnhancedContext
           
static class MethodTest.Functor
           
static class MethodTest.MyMath
           
static class MethodTest.ScriptContext
           
static class MethodTest.VarArgs
           
 
Field Summary
 
Fields inherited from class org.apache.commons.jexl2.JexlTestCase
JEXL
 
Constructor Summary
MethodTest()
           
 
Method Summary
 void setUp()
           
 void testCallJexlVarArgMethod()
           
 void testCallMixedVarArgMethod()
           
 void testCallVarArgMethod()
           
 void testInvoke()
           
 void testMethod()
          test a simple method expression
 void testMulti()
           
 void testNamespaceCall()
           
 void testScriptCall()
           
 void testStaticMethodInvocation()
          Ensures static methods on objects can be called.
 void testStaticMethodInvocationOnClasses()
           
 void testStringMethods()
          test some String method calls
 void testTopLevelCall()
           
 
Methods inherited from class org.apache.commons.jexl2.JexlTestCase
createEngine, createThreadedArithmeticEngine, debuggerCheck, flatten, flattenedStr, main, runTest, runTest, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodTest

public MethodTest()
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testCallVarArgMethod

public void testCallVarArgMethod()
                          throws Exception
Throws:
Exception

testCallMixedVarArgMethod

public void testCallMixedVarArgMethod()
                               throws Exception
Throws:
Exception

testCallJexlVarArgMethod

public void testCallJexlVarArgMethod()
                              throws Exception
Throws:
Exception

testInvoke

public void testInvoke()
                throws Exception
Throws:
Exception

testMethod

public void testMethod()
                throws Exception
test a simple method expression

Throws:
Exception

testMulti

public void testMulti()
               throws Exception
Throws:
Exception

testStringMethods

public void testStringMethods()
                       throws Exception
test some String method calls

Throws:
Exception

testStaticMethodInvocation

public void testStaticMethodInvocation()
                                throws Exception
Ensures static methods on objects can be called.

Throws:
Exception

testStaticMethodInvocationOnClasses

public void testStaticMethodInvocationOnClasses()
                                         throws Exception
Throws:
Exception

testTopLevelCall

public void testTopLevelCall()
                      throws Exception
Throws:
Exception

testNamespaceCall

public void testNamespaceCall()
                       throws Exception
Throws:
Exception

testScriptCall

public void testScriptCall()
                    throws Exception
Throws:
Exception


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.