public class JEPTest
extends junit.framework.TestCase
Take for example an input text file containing the two lines
1+2 3.The expressions '1+2' and '3' are evaluated with JEP and the results compared.
Constructor and Description |
---|
JEPTest(String name)
Creates a new JEPTest instance
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
The main method checks the arguments and creates an instance
and calls it's run method.
|
void |
runTest()
Runs the test.
|
void |
setUp()
Sets up the parser.
|
void |
testGetComplexValue()
Test the getComplexValue() method.
|
void |
testGetValue()
Test the getValue() method.
|
void |
testWithFile() |
void |
testWithFile(String fileName)
Loads the file specified in fileName.
|
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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
public JEPTest(String name)
public void setUp()
setUp
in class junit.framework.TestCase
public void runTest()
runTest
in class junit.framework.TestCase
public static void main(String[] args)
public void testWithFile()
public void testWithFile(String fileName)
public void testGetValue()
public void testGetComplexValue()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics