org.lsmp.djepJUnit
Class XJepTest

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

public class XJepTest
extends TestCase

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

Field Summary
static boolean SHOW_BAD
           
 
Constructor Summary
XJepTest(java.lang.String name)
           
 
Method Summary
 java.lang.Object calcValue(java.lang.String expr)
           
 void complexValueTest(java.lang.String expr, Complex expected, double tol)
           
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 testBad()
           
 void testComplex()
           
 void testDotInName()
           
 void testGood()
          just test JUnit working OK
 void testIf()
           
 void testMacroFun()
           
 void testOperators()
           
 void testPrint()
           
 void testReentrant()
           
 void testRewrite()
           
 void testSimp()
           
 void testSimpleSum()
           
 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

XJepTest

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

main

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

setUp

protected void setUp()

suite

public static Test suite()

myAssertEquals

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

testGood

public void testGood()
just test JUnit working OK


valueTest

public void valueTest(java.lang.String expr,
                      double dub)
               throws java.lang.Exception
Throws:
java.lang.Exception

valueTest

public void valueTest(java.lang.String expr,
                      java.lang.Object expected)
               throws java.lang.Exception
Throws:
java.lang.Exception

complexValueTest

public void complexValueTest(java.lang.String expr,
                             Complex expected,
                             double tol)
                      throws java.lang.Exception
Throws:
java.lang.Exception

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()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testOperators

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

testPrint

public void testPrint()
               throws ParseException
Throws:
ParseException

testSimp

public void testSimp()
              throws ParseException
Throws:
ParseException

testComplex

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

testIf

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

testAssign

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

testMacroFun

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

testVariableReuse

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

testDotInName

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

testReentrant

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

testRewrite

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

testBad

public void testBad()
             throws ParseException
Throws:
ParseException


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