org.lsmp.djepJUnit
Class RpTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.lsmp.djepJUnit.RpTest
All Implemented Interfaces:
junit.framework.Test

public class RpTest
extends junit.framework.TestCase

JUnit test for full Matrix Rp evaluator

Author:
Rich Morris Created on 19-Nov-2003

Field Summary
static boolean SHOW_BAD
           
 
Constructor Summary
RpTest(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)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testAssign()
           
 void testFun()
           
 void testGood()
           
 void testLogical()
           
 void testRp()
           
 void valueTest(java.lang.String expr, double dub)
           
 void valueTest(java.lang.String expr, java.lang.Object expected)
           
 void valueTest(java.lang.String expr, java.lang.String expected)
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

SHOW_BAD

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

RpTest

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

main

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

setUp

protected void setUp()
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()

testGood

public void testGood()

myAssertEquals

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

valueTest

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

valueTest

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

valueTest

public void valueTest(java.lang.String expr,
                      java.lang.String expected)
               throws ParseException,
                      java.lang.Exception
Throws:
ParseException
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)
                           throws ParseException,
                                  java.lang.Exception
Throws:
ParseException
java.lang.Exception

testRp

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

testAssign

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

testLogical

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

testFun

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


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