com.singularsys.jeptests
Class ExtendedParserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.singularsys.jeptests.JepTest
              extended by com.singularsys.jeptests.ExtendedParserTest
All Implemented Interfaces:
junit.framework.Test

public class ExtendedParserTest
extends JepTest

Tests for the configurable parser.


Field Summary
 
Fields inherited from class com.singularsys.jeptests.JepTest
jep, myFalse, myTrue, PRINT_RESULTS
 
Constructor Summary
ExtendedParserTest(java.lang.String name)
           
 
Method Summary
 void setUp()
          Sets up the parser.
 void testBitwise()
           
 void testComplex()
           
 void testFunction()
           
 void testIncrement()
           
 void testLazyLogical()
           
 void testLogical()
           
 void testNumParam()
           
 void testOpEquals()
           
 void testOverlappingNames()
           
 void testParseException()
          Tests whether a parse exceptions are thrown when they should be.
 void testPlusPlus()
           
 void testStrings()
           
 void testTernary()
           
 void testUpperCaseOperator()
           
 
Methods inherited from class com.singularsys.jeptests.JepTest
calcValue, calcValue, complexValueTest, myAssertEquals, myAssertNaN, nodeTest, nodeTest, nodeTest, nodeTest, parseExceptionWithSpecParser, printTestHeader, testAssign, testBinom, testBlankParser, testChangeVariable, testEmptyEqn, testEmptyEqn2, testEvalExceptions, testEvaluate, testExpectedTokenSequence, testFormat, testIf, testImplicitMul, testListAccess, testLogarithm, testMacroFunction, testMultiDimArray, testMultiLine, testNaN, testNumbers, testSemiColon, testSetAllowUndeclared, testSimpleSum, testUminusPower, valueTest, valueTest, valueTestNaN, valueTestString
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtendedParserTest

public ExtendedParserTest(java.lang.String name)
Method Detail

setUp

public void setUp()
Description copied from class: JepTest
Sets up the parser.

Overrides:
setUp in class JepTest

testBitwise

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

testTernary

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

testComplex

public void testComplex()
                 throws java.lang.Exception
Overrides:
testComplex in class JepTest
Throws:
java.lang.Exception

testFunction

public void testFunction()
                  throws java.lang.Exception
Overrides:
testFunction in class JepTest
Throws:
java.lang.Exception

testPlusPlus

public void testPlusPlus()
                  throws java.lang.Exception
Overrides:
testPlusPlus in class JepTest
Throws:
java.lang.Exception

testIncrement

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

testOpEquals

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

testLogical

public void testLogical()
                 throws java.lang.Exception
Overrides:
testLogical in class JepTest
Throws:
java.lang.Exception

testLazyLogical

public void testLazyLogical()
                     throws java.lang.Exception
Overrides:
testLazyLogical in class JepTest
Throws:
java.lang.Exception

testNumParam

public void testNumParam()
                  throws java.lang.Exception
Overrides:
testNumParam in class JepTest
Throws:
java.lang.Exception

testStrings

public void testStrings()
                 throws java.lang.Exception
Overrides:
testStrings in class JepTest
Throws:
java.lang.Exception

testUpperCaseOperator

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

testParseException

public void testParseException()
Description copied from class: JepTest
Tests whether a parse exceptions are thrown when they should be. Tests on both the standard parser and the configurable parser. See ticket #50

Overrides:
testParseException in class JepTest

testOverlappingNames

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


Copyright © 2008 Singular Systems http://www.singularsys.com/jep