|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jcoderz.commons.LogMessageInfoTest
public class LogMessageInfoTest
Tests the LogMessageInfo class.
| 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 |
|---|
public LogMessageInfoTest()
| Method Detail |
|---|
public void testMisc()
public void testFromString()
TstLogMessage.fromString(String).
public void testFromInt()
TstLogMessage.fromInt(int).
public void testToInt()
LogMessageInfoImpl.toInt().
public void testToString()
LogMessageInfoImpl.toString().
public void testGetSymbol()
LogMessageInfoImpl.getSymbol().
public void testGetLogLevel()
LogMessageInfoImpl.getLogLevel().
public void testGetMessagePattern()
LogMessageInfoImpl.getMessagePattern().
public void testFormatMessage()
LogMessageInfoImpl.formatMessage(Map, StringBuffer).
public void testGetSolution()
LogMessageInfoImpl.getSolution().
public void testGetBusinessImpact()
LogMessageInfoImpl.getBusinessImpact().
public void testHashCode()
Object.hashCode().
public void testSerialize()
throws Exception
Exception - in case of an unexpected error.public void testSampleError()
public void testSerializable()
throws Exception
Exception - in case of an unexpected error.public void testAuditLogEvent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||