org.jcoderz.commons.logging
Class XmlPrinterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jcoderz.commons.LogFormatterOutputTest
              extended by org.jcoderz.commons.logging.XmlPrinterTest
All Implemented Interfaces:
Test

public class XmlPrinterTest
extends LogFormatterOutputTest

This class is used for testing the XmlPrinter. It uses the handler being installed by the LogElementTest and sets a formatter using th XmlPrinter. The log messages are generated by the LogFormatterOutputTest.


Constructor Summary
XmlPrinterTest()
          Creates a new test case instance.
 
Method Summary
protected  void setUp()
          Installs an additional Handler, which publishes RocRecords using LogElements.
protected  void tearDown()
          Deinstalls the additional Handler.
 void testSimpleLogRecord()
           
 
Methods inherited from class org.jcoderz.commons.LogFormatterOutputTest
testDeepNesting, testLogEvent, testLogEventWithImpliedParams, testLogException, testLogNestedThrowable, testLogThrowable, testNesting, testNestingWithSax, testServerExceptionLogWithNestedInternalErrorAndNullPointer, testServerExceptionLogWithNestedNullPointer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

XmlPrinterTest

public XmlPrinterTest()
Creates a new test case instance.

Method Detail

testSimpleLogRecord

public void testSimpleLogRecord()

setUp

protected void setUp()
Installs an additional Handler, which publishes RocRecords using LogElements.

Overrides:
setUp in class TestCase
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
Deinstalls the additional Handler.

Overrides:
tearDown in class TestCase
See Also:
TestCase.setUp()


Copyright 2007 The jCoderZ Project.