Class to test logging of system output and system errors
| Method from net.firstpartners.nounit.utility.test.TestLogging Detail: |
public static void main(String[] args) {
junit.textui.TestRunner.run (suite());
}
Enable Junit to run this Class individually |
protected void setUp() {
//Put in Setup Code Here
}
Method to setup logging test |
public static Test suite() {
return new TestSuite(TestLogging.class);
}
Enable Junit to run this class |
public void testLogFileValue() throws IOException {
// Make sure a log file name (and error log file) name are set
//Call value to make sure setup is done
Logging.printOutput("Some TestLogging.testLogFileValue");
Logging.printError("Some TestLogging.testLogFileValue");
}
Test that a value is set for the log file |
public void testSysErr() throws IOException {
Logging.printError("test errors");
}
test the ability to get system errors from class logging |
public void testSysOut() throws IOException {
Logging.printOutput("test output");
}
test the ability to get system output from class logging |