net.firstpartners.nounit.utility.test
Class TestLogging

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.firstpartners.nounit.utility.test.TestLogging
All Implemented Interfaces:
junit.framework.Test

public class TestLogging
extends junit.framework.TestCase

Class to test logging of system output and system errors


Constructor Summary
TestLogging(java.lang.String name)
          Constructor Required by Junit
 
Method Summary
static void main(java.lang.String[] args)
          Enable Junit to run this Class individually
protected  void setUp()
          Method to setup logging test
static junit.framework.Test suite()
          Enable Junit to run this class
 void testLogFileValue()
          Test that a value is set for the log file
 void testSysErr()
          test the ability to get system errors from class logging
 void testSysOut()
          test the ability to get system output from class logging
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestLogging

public TestLogging(java.lang.String name)
Constructor Required by Junit
Parameters:
name -  
Method Detail

setUp

protected void setUp()
Method to setup logging test
Overrides:
setUp in class junit.framework.TestCase

main

public static void main(java.lang.String[] args)
Enable Junit to run this Class individually
Parameters:
args -  

suite

public static junit.framework.Test suite()
Enable Junit to run this class
Returns:
TestDataCaptureDefaults.class

testSysOut

public void testSysOut()
                throws java.io.IOException
test the ability to get system output from class logging

testSysErr

public void testSysErr()
                throws java.io.IOException
test the ability to get system errors from class logging

testLogFileValue

public void testLogFileValue()
                      throws java.io.IOException
Test that a value is set for the log file