|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
lp.trans.EvolpTransformerTest
public class EvolpTransformerTest
Contains tests of the EvolpTransformer
class.
EvolpTransformer
Field Summary | |
---|---|
protected EvolpParser |
parser
A EvolpParser instance used in the tests to convert create
object representations of rules. |
private EvolpTransformer |
transformer
A EvolpTransformer instance used in the tests. |
Constructor Summary | |
---|---|
EvolpTransformerTest(String testName)
A default test case constructor. |
Method Summary | |
---|---|
protected void |
doTest(String filename)
Reads both the input program and the expected results from the file filename . |
void |
testSimple()
Tests the transformer on a simple input. |
void |
testSuitcase()
Tests the transformer on a more complex input (the suitcase example). |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final EvolpParser parser
EvolpParser
instance used in the tests to convert create
object representations of rules.
private final EvolpTransformer transformer
EvolpTransformer
instance used in the tests.
Constructor Detail |
---|
public EvolpTransformerTest(String testName)
testName
- the name of the test caseMethod Detail |
---|
public void testSimple() throws IOException
IOException
public void testSuitcase() throws IOException
IOException
protected void doTest(String filename) throws IOException
filename
.
filename
- the path to the file that contains both the input program
and the expected transformed program.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |