org.lsmp.djepJUnit
Class DJepTest

java.lang.Object
  extended byTestCase
      extended byorg.lsmp.djepJUnit.DJepTest

public class DJepTest
extends TestCase

Author:
Rich Morris Created on 19-Nov-2003
See Also:
Serialized Form

Field Summary
static boolean SHOW_BAD
           
 
Constructor Summary
DJepTest(java.lang.String name)
           
 
Method Summary
 java.lang.Object calcValue(java.lang.String expr)
           
static void main(java.lang.String[] args)
           
 void myAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)
           
 Node parseProcSimpEval(java.lang.String expr, java.lang.Object expected)
           
protected  void setUp()
           
 void simplifyTest(java.lang.String expr, java.lang.String expected)
           
 void simplifyTestString(java.lang.String expr, java.lang.String expected)
           
static Test suite()
           
 void testAssign()
           
 void testAssign2()
           
 void testAssignDiff()
           
 void testBad()
           
 void testDiff()
           
 void testEval()
           
 void testGood()
           
 void testIf()
           
 void testNaN()
           
 void testOperators()
           
 void testSimp()
           
 void testSimpleSum()
           
 void testSqrt()
           
 void testSum()
           
 void testVariableReuse()
           
 void valueTest(java.lang.String expr, double dub)
           
 void valueTest(java.lang.String expr, java.lang.Object expected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_BAD

public static final boolean SHOW_BAD
See Also:
Constant Field Values
Constructor Detail

DJepTest

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

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()

suite

public static Test suite()

testGood

public void testGood()

valueTest

public void valueTest(java.lang.String expr,
                      double dub)

valueTest

public void valueTest(java.lang.String expr,
                      java.lang.Object expected)

calcValue

public java.lang.Object calcValue(java.lang.String expr)

simplifyTest

public void simplifyTest(java.lang.String expr,
                         java.lang.String expected)
                  throws ParseException
Throws:
ParseException

simplifyTestString

public void simplifyTestString(java.lang.String expr,
                               java.lang.String expected)
                        throws ParseException
Throws:
ParseException

parseProcSimpEval

public Node parseProcSimpEval(java.lang.String expr,
                              java.lang.Object expected)
                       throws ParseException,
                              java.lang.Exception
Throws:
ParseException
java.lang.Exception

testSimpleSum

public void testSimpleSum()

testOperators

public void testOperators()

testEval

public void testEval()
              throws ParseException
Throws:
ParseException

testSimp

public void testSimp()
              throws ParseException
Throws:
ParseException

testIf

public void testIf()

testAssign

public void testAssign()

testDiff

public void testDiff()
              throws ParseException
Throws:
ParseException

myAssertEquals

public void myAssertEquals(java.lang.String msg,
                           java.lang.String actual,
                           java.lang.String expected)

testAssignDiff

public void testAssignDiff()
                    throws ParseException
Throws:
ParseException

testVariableReuse

public void testVariableReuse()
                       throws ParseException,
                              java.lang.Exception
Throws:
ParseException
java.lang.Exception

testNaN

public void testNaN()
             throws ParseException,
                    java.lang.Exception
Throws:
ParseException
java.lang.Exception

testAssign2

public void testAssign2()

testSqrt

public void testSqrt()

testSum

public void testSum()

testBad

public void testBad()
             throws ParseException
Throws:
ParseException


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