org.apache.commons.jexl2
Class ParseFailuresTest

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

public class ParseFailuresTest
extends JexlTestCase

Tests for malformed expressions and scripts. (JexlEngine.createExpression(String) and JexlEngine.createScript(String) should throw JexlExceptions).

Since:
1.1

Field Summary
 
Fields inherited from class org.apache.commons.jexl2.JexlTestCase
JEXL
 
Constructor Summary
ParseFailuresTest(String testName)
          Create the test.
 
Method Summary
 void testMalformedExpression1()
           
 void testMalformedExpression2()
           
 void testMalformedScript1()
           
 void testMalformedScript2()
           
 void testMalformedScript3()
           
 
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

ParseFailuresTest

public ParseFailuresTest(String testName)
Create the test.

Parameters:
testName - name of the test
Method Detail

testMalformedExpression1

public void testMalformedExpression1()
                              throws Exception
Throws:
Exception

testMalformedExpression2

public void testMalformedExpression2()
                              throws Exception
Throws:
Exception

testMalformedScript1

public void testMalformedScript1()
                          throws Exception
Throws:
Exception

testMalformedScript2

public void testMalformedScript2()
                          throws Exception
Throws:
Exception

testMalformedScript3

public void testMalformedScript3()
                          throws Exception
Throws:
Exception


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