|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.multijava.util.testing.TestCase
org.multijava.util.testing.TestFilesTestSuite.Helper
This is a helper class that is actually a TestCase; it is run repeatedly with different constructor arguments.
| Field Summary | |
protected String[] |
args
Command-line arguments (including filename) for this test. |
protected String |
fileToTest
The name of the file to be tested. |
| Fields inherited from class org.multijava.util.testing.TestCase |
NEWLINE |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
TestFilesTestSuite.Helper(String filename,
String[] args)
The first argument is used as the name of the test as well as the name of the file to be tested. |
|
| Method Summary | |
protected void |
dotest(ByteArrayOutputStream ba)
This is the actual test; it compiles the given file and compares its output to the expected result (in fileToTest+ORACLE_SUFFIX); the output is expected to match and the result of the compile to be true or false, depending on whether errors or warnings were reported. |
void |
expectedStatusReport(boolean b,
String ss)
|
void |
runTest()
This is the framework around the test. |
| Methods inherited from class org.multijava.util.testing.TestCase |
assertDiff, assertEquals |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, 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 String fileToTest
protected String[] args
| Constructor Detail |
public TestFilesTestSuite.Helper(String filename,
String[] args)
| Method Detail |
public void runTest()
throws IOException
runTest in class junit.framework.TestCaseIOException
protected void dotest(ByteArrayOutputStream ba)
throws IllegalAccessException,
IllegalArgumentException,
IOException,
InvocationTargetException
ba - contains stuff written to the output stream in this test
IllegalAccessException
IllegalArgumentException
IOException
InvocationTargetException
public void expectedStatusReport(boolean b,
String ss)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||