org.jcoderz.commons.logging
Class LogElementTest

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.LogElementTest
All Implemented Interfaces:
Test

public class LogElementTest
extends LogFormatterOutputTest

This class is used for testing the LogElement wrapper of a LogRecord. It installs a LogFormatter, which allocates a LogElement for each LogRecord to publish and uses LogFormatterOutputTest for generating the log messages.


Constructor Summary
LogElementTest()
          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

LogElementTest

public LogElementTest()
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.