org.jcoderz.commons
Class LogMessageInfoTest

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

public class LogMessageInfoTest
extends TestCase

Tests the LogMessageInfo class.

Author:
Michael Griffel

Nested Class Summary
static class LogMessageInfoTest.SampleError
          Sample exception using test log message.
 
Constructor Summary
LogMessageInfoTest()
           
 
Method Summary
 void testAuditLogEvent()
          Tests the if the special audit log event is generated.
 void testFormatMessage()
          Tests the method LogMessageInfoImpl.formatMessage(Map, StringBuffer).
 void testFromInt()
          Tests the method TstLogMessage.fromInt(int).
 void testFromString()
          Tests the method TstLogMessage.fromString(String).
 void testGetBusinessImpact()
          Tests the method LogMessageInfoImpl.getBusinessImpact().
 void testGetLogLevel()
          Tests the method LogMessageInfoImpl.getLogLevel().
 void testGetMessagePattern()
          Tests the method LogMessageInfoImpl.getMessagePattern().
 void testGetSolution()
          Tests the method LogMessageInfoImpl.getSolution().
 void testGetSymbol()
          Tests the method LogMessageInfoImpl.getSymbol().
 void testHashCode()
          Tests the method Object.hashCode().
 void testMisc()
          Tests that it is possible to use the int representation of the log message in a switch statement.
 void testSampleError()
          Test the usage of the test message w/ exception wrapper.
 void testSerializable()
          Tests the serializable implementation.
 void testSerialize()
          Tests the method readResolve().
 void testToInt()
          Tests the method LogMessageInfoImpl.toInt().
 void testToString()
          Tests the method LogMessageInfoImpl.toString().
 
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

LogMessageInfoTest

public LogMessageInfoTest()
Method Detail

testMisc

public void testMisc()
Tests that it is possible to use the int representation of the log message in a switch statement.


testFromString

public void testFromString()
Tests the method TstLogMessage.fromString(String).


testFromInt

public void testFromInt()
Tests the method TstLogMessage.fromInt(int).


testToInt

public void testToInt()
Tests the method LogMessageInfoImpl.toInt().


testToString

public void testToString()
Tests the method LogMessageInfoImpl.toString().


testGetSymbol

public void testGetSymbol()
Tests the method LogMessageInfoImpl.getSymbol().


testGetLogLevel

public void testGetLogLevel()
Tests the method LogMessageInfoImpl.getLogLevel().


testGetMessagePattern

public void testGetMessagePattern()
Tests the method LogMessageInfoImpl.getMessagePattern().


testFormatMessage

public void testFormatMessage()
Tests the method LogMessageInfoImpl.formatMessage(Map, StringBuffer).


testGetSolution

public void testGetSolution()
Tests the method LogMessageInfoImpl.getSolution().


testGetBusinessImpact

public void testGetBusinessImpact()
Tests the method LogMessageInfoImpl.getBusinessImpact().


testHashCode

public void testHashCode()
Tests the method Object.hashCode().


testSerialize

public void testSerialize()
                   throws Exception
Tests the method readResolve().

Throws:
Exception - in case of an unexpected error.

testSampleError

public void testSampleError()
Test the usage of the test message w/ exception wrapper.


testSerializable

public void testSerializable()
                      throws Exception
Tests the serializable implementation.

Throws:
Exception - in case of an unexpected error.

testAuditLogEvent

public void testAuditLogEvent()
Tests the if the special audit log event is generated.



Copyright 2007 The jCoderZ Project.