org.apache.commons.jexl2
Class ScriptTest

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.ScriptTest
All Implemented Interfaces:
junit.framework.Test

public class ScriptTest
extends JexlTestCase

Tests for Script

Since:
1.1

Nested Class Summary
static class ScriptTest.Tester
           
 
Field Summary
 
Fields inherited from class org.apache.commons.jexl2.JexlTestCase
JEXL
 
Constructor Summary
ScriptTest(String name)
          Create a new test case.
 
Method Summary
 void testScriptFromFile()
           
 void testScriptFromURL()
           
 void testScriptUpdatesContext()
           
 void testSimpleScript()
          Test creating a script from a string.
 
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, setUp, 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

ScriptTest

public ScriptTest(String name)
Create a new test case.

Parameters:
name - case name
Method Detail

testSimpleScript

public void testSimpleScript()
                      throws Exception
Test creating a script from a string.

Throws:
Exception

testScriptFromFile

public void testScriptFromFile()
                        throws Exception
Throws:
Exception

testScriptFromURL

public void testScriptFromURL()
                       throws Exception
Throws:
Exception

testScriptUpdatesContext

public void testScriptUpdatesContext()
                              throws Exception
Throws:
Exception


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