org.shapelogic.logic
Class JexlContextTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.shapelogic.logic.JexlContextTest
All Implemented Interfaces:
junit.framework.Test

public class JexlContextTest
extends junit.framework.TestCase

Test problems with JexlContext: call static method on class

Author:
Sami Badawi

Constructor Summary
JexlContextTest()
           
 
Method Summary
 void setUp()
           
 void testCollectionSize()
           
 void testMapAccess()
           
 void testMultipleStatements()
          Notice that the result get turned into a Long
 void testStaticMethodCallFromClass()
          So the solution is that you have to associate a the class name with the class first
 void testStaticMethodCallFromClassUsingSetClassInContext()
          So the solution is that you have to associate a the class name with the class first
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JexlContextTest

public JexlContextTest()
Method Detail

setUp

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

testStaticMethodCallFromClass

public void testStaticMethodCallFromClass()
                                   throws java.lang.Exception
So the solution is that you have to associate a the class name with the class first

Throws:
java.lang.Exception

testStaticMethodCallFromClassUsingSetClassInContext

public void testStaticMethodCallFromClassUsingSetClassInContext()
                                                         throws java.lang.Exception
So the solution is that you have to associate a the class name with the class first

Throws:
java.lang.Exception

testMultipleStatements

public void testMultipleStatements()
                            throws java.lang.Exception
Notice that the result get turned into a Long

Throws:
java.lang.Exception

testCollectionSize

public void testCollectionSize()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testMapAccess

public void testMapAccess()
                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.