org.jcoderz.commons
Class LogFormatterOutputTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.LogFormatterOutputTest
All Implemented Interfaces:
Test
Direct Known Subclasses:
LogElementTest, XmlPrinterTest

public class LogFormatterOutputTest
extends TestCase

JUnit test to demonstrate the different outputs of the LogFormatter.

Author:
Michael Griffel

Constructor Summary
LogFormatterOutputTest()
           
 
Method Summary
 void testDeepNesting()
          Test deep nested exception.
 void testLogEvent()
          Produces a log message from an exception w/ two parameters.
 void testLogEventWithImpliedParams()
          Produces a log message from an exception w/ two parameters.
 void testLogException()
          Produces a log message from an exception w/ two parameters and exception as cause.
 void testLogNestedThrowable()
          Produces a log message from a standard log record with a nested Throwable.
 void testLogThrowable()
          Produces a log message from a standard log record with a Throwable.
 void testNesting()
          Test nested exceptions.
 void testNestingWithSax()
          Test deep nested with SAX exceptions exception.
 void testServerExceptionLogWithNestedInternalErrorAndNullPointer()
          Test singel nested exception.
 void testServerExceptionLogWithNestedNullPointer()
          Test singel nested exception.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogFormatterOutputTest

public LogFormatterOutputTest()
Method Detail

testLogEvent

public void testLogEvent()
Produces a log message from an exception w/ two parameters.


testLogEventWithImpliedParams

public void testLogEventWithImpliedParams()
Produces a log message from an exception w/ two parameters.


testLogException

public void testLogException()
Produces a log message from an exception w/ two parameters and exception as cause.


testLogThrowable

public void testLogThrowable()
Produces a log message from a standard log record with a Throwable.


testLogNestedThrowable

public void testLogNestedThrowable()
Produces a log message from a standard log record with a nested Throwable.


testServerExceptionLogWithNestedNullPointer

public void testServerExceptionLogWithNestedNullPointer()
Test singel nested exception.


testServerExceptionLogWithNestedInternalErrorAndNullPointer

public void testServerExceptionLogWithNestedInternalErrorAndNullPointer()
Test singel nested exception.


testDeepNesting

public void testDeepNesting()
Test deep nested exception.


testNesting

public void testNesting()
Test nested exceptions.


testNestingWithSax

public void testNestingWithSax()
Test deep nested with SAX exceptions exception.



Copyright 2007 The jCoderZ Project.