| java.lang.Object com.quadcap.util.Test
All known Subclasses: com.quadcap.io.dir.Test, com.quadcap.text.sax.Test, com.quadcap.http.server22.Test, com.quadcap.io.Test,
Test | public class Test (Code) | | Test harness for the com.quadcap.util package. This class is also the
base class for other package Test classes.
author: Stan Bailes |
Constructor Summary | |
public | Test() Test constructor. |
failed | protected boolean failed(Code) | | |
generate | boolean generate(Code) | | |
Test | public Test()(Code) | | Test constructor. Open the output file as specified.
|
checkOutput | public void checkOutput()(Code) | | For tests which generate output to a stream, compare the actual stream
to the expected (pregenerated) stream. If the gen
system property is true, we simply close the stream, which
is used to generate the file of expected data used to compare in
subsequent test runs.
|
main | public static void main(String args)(Code) | | Main.
Parameters: args - passed to test driver |
printFinal | final void printFinal()(Code) | | |
test | public void test(String args)(Code) | | Main test driver. Set up environment, run each test by using reflection
to find the methods in the derived class as specified by the
tests system property.
|
testAssert | public void testAssert(boolean val, String msg)(Code) | | Assert
|
testAssert | public void testAssert(boolean val)(Code) | | |
testCompare | public void testCompare(String exp, String act)(Code) | | Compare two strings, resulting in a test error if the strings are
not equal
Parameters: exp - the expected value Parameters: act - the actual value |
testError | public void testError(String s)(Code) | | Indicate a test error with the specified detail message
Parameters: s - the message |
testUtilStrBytes | public void testUtilStrBytes(String args)(Code) | | testUtilStrBytes -- test Util.strBytes
Parameters: args - ignored |
|
|