public class StreamScanParsePrintIdentityTest
extends java.lang.Object
| Constructor and Description |
|---|
StreamScanParsePrintIdentityTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
generalTest1()
TestCases for a stream s.
|
void |
generalTest2()
TestCases for a stream s.
|
void |
generalTest3()
TestCases for a stream s.
|
void |
generalTest4()
TestCases for a stream s.
|
void |
generalTest5()
TestCases for a stream s.
|
static junit.framework.Test |
suite()
Necessary for "ant".
|
private void |
testOp(java.lang.String inputType,
java.lang.String inputDefinition,
java.lang.String inputAssignment,
java.lang.String inputPackageDescription)
The input gets scanned, parsed and printed and is compared to the result.
|
public static junit.framework.Test suite()
public void generalTest1()
throws ScannerException,
java.lang.InterruptedException,
PrinterException,
java.io.IOException,
ParserException
ScannerException - If an Exception is thrown in the scanner.java.lang.InterruptedException - If an Exception is thrown in the scanner.java.io.IOException - If an Exception is thrown in the scanner.ParserException - If the parser throws an exception.PrinterException - If the Printer causes an IOException.public void generalTest2()
throws ScannerException,
java.lang.InterruptedException,
PrinterException,
java.io.IOException,
ParserException
ScannerException - If an Exception is thrown in the scanner.java.lang.InterruptedException - If an Exception is thrown in the scanner.java.io.IOException - If an Exception is thrown in the scanner.ParserException - If the parser throws an exception.PrinterException - If the Printer causes an IOException.public void generalTest3()
throws ScannerException,
java.lang.InterruptedException,
PrinterException,
java.io.IOException,
ParserException
ScannerException - If an Exception is thrown in the scanner.java.lang.InterruptedException - If an Exception is thrown in the scanner.java.io.IOException - If an Exception is thrown in the scanner.ParserException - If the parser throws an exception.PrinterException - If the Printer causes an IOException.public void generalTest4()
throws ScannerException,
java.lang.InterruptedException,
PrinterException,
java.io.IOException,
ParserException
ScannerException - If an Exception is thrown in the scanner.java.lang.InterruptedException - If an Exception is thrown in the scanner.java.io.IOException - If an Exception is thrown in the scanner.ParserException - If the parser throws an exception.PrinterException - If the Printer causes an IOException.public void generalTest5()
throws ScannerException,
java.lang.InterruptedException,
PrinterException,
java.io.IOException,
ParserException
ScannerException - If an Exception is thrown in the scanner.java.lang.InterruptedException - If an Exception is thrown in the scanner.java.io.IOException - If an Exception is thrown in the scanner.ParserException - If the parser throws an exception.PrinterException - If the Printer causes an IOException.private void testOp(java.lang.String inputType,
java.lang.String inputDefinition,
java.lang.String inputAssignment,
java.lang.String inputPackageDescription)
throws ScannerException,
java.lang.InterruptedException,
java.io.IOException,
ParserException,
PrinterException
inputType - String of inputTypes to test.inputDefinition - String of inputDef to test.inputAssignment - String of inputAssigns to test.inputPackageDescription - String of inputPackageDescription to test.ScannerException - If an Exception is thrown in the scanner.java.lang.InterruptedException - If an Exception is thrown in the scanner.java.io.IOException - If an Exception is thrown in the scanner.ParserException - If the parser throws an ecxeption.PrinterException - If the Printer causes an IOException.