bb.util
Class UncaughtThrowableLogger.UnitTest

java.lang.Object
  extended by bb.util.UncaughtThrowableLogger.UnitTest
Enclosing class:
UncaughtThrowableLogger

public static class UncaughtThrowableLogger.UnitTest
extends Object

See the Overview page of the project's javadocs for a general description of this unit test class.


Field Summary
private static String exceptionMsg
           
private  File logFile
           
private  Logger logger
           
private static String threadnameNew
           
private  String threadnameOriginal
           
private  UncaughtThrowableLogger uncaughtThrowableLogger
           
 
Constructor Summary
UncaughtThrowableLogger.UnitTest()
           
 
Method Summary
private  void confirmLogFileContains(String s)
           
 void setUp()
           
 void tearDown()
           
 void test_uncaughtException_shouldPass1()
           
 void test_uncaughtException_shouldPass2()
           
 void test_uncaughtException_shouldPass3()
           
 void test_uncaughtException_shouldPass4()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadnameNew

private static final String threadnameNew
See Also:
Constant Field Values

exceptionMsg

private static final String exceptionMsg
See Also:
Constant Field Values

threadnameOriginal

private String threadnameOriginal

logFile

private File logFile

logger

private Logger logger

uncaughtThrowableLogger

private UncaughtThrowableLogger uncaughtThrowableLogger
Constructor Detail

UncaughtThrowableLogger.UnitTest

public UncaughtThrowableLogger.UnitTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

test_uncaughtException_shouldPass1

public void test_uncaughtException_shouldPass1()
                                        throws Exception
Throws:
Exception

test_uncaughtException_shouldPass2

public void test_uncaughtException_shouldPass2()
                                        throws Exception
Throws:
Exception

test_uncaughtException_shouldPass3

public void test_uncaughtException_shouldPass3()
                                        throws Exception
Throws:
Exception

test_uncaughtException_shouldPass4

public void test_uncaughtException_shouldPass4()
                                        throws Exception
Throws:
Exception

confirmLogFileContains

private void confirmLogFileContains(String s)
                             throws Exception
Throws:
Exception