org.shapelogic.filter
Class AntlrTest

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

public class AntlrTest
extends junit.framework.TestCase

This test the parsing of expression for the logic language that is done with the help of Antlr.

Author:
Sami Badawi

Field Summary
static java.lang.String AND
           
static java.lang.String CONSTRAINT
           
static java.lang.String NOT
           
static java.lang.String OR
           
static java.lang.String STRING
           
 
Constructor Summary
AntlrTest()
           
 
Method Summary
 void te_stFile()
          If I have a grammer in a text file
 void testEscape()
           
 void testEscapeBackspace()
           
 void testEscapeDoubleQuote()
          Test that parameters are handled correctly
 void testParameters()
          Test that parameters are handled correctly
 void testParametersDoubleQuote()
          Test that parameters are handled correctly
 void testParsingOfLogicalExpressionIntoAST()
          Test Parsing Of Logical Expression Into AST
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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
 

Field Detail

AND

public static final java.lang.String AND
See Also:
Constant Field Values

OR

public static final java.lang.String OR
See Also:
Constant Field Values

NOT

public static final java.lang.String NOT
See Also:
Constant Field Values

CONSTRAINT

public static final java.lang.String CONSTRAINT
See Also:
Constant Field Values

STRING

public static final java.lang.String STRING
See Also:
Constant Field Values
Constructor Detail

AntlrTest

public AntlrTest()
Method Detail

te_stFile

public void te_stFile()
               throws java.lang.Exception
If I have a grammer in a text file

Throws:
java.lang.Exception

testParsingOfLogicalExpressionIntoAST

public void testParsingOfLogicalExpressionIntoAST()
                                           throws java.lang.Exception
Test Parsing Of Logical Expression Into AST

Throws:
java.lang.Exception

testParameters

public void testParameters()
                    throws java.lang.Exception
Test that parameters are handled correctly

Throws:
java.lang.Exception

testParametersDoubleQuote

public void testParametersDoubleQuote()
                               throws java.lang.Exception
Test that parameters are handled correctly

Throws:
java.lang.Exception

testEscapeDoubleQuote

public void testEscapeDoubleQuote()
                           throws java.lang.Exception
Test that parameters are handled correctly

Throws:
java.lang.Exception

testEscape

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

testEscapeBackspace

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


Copyright © 2009. All Rights Reserved.