|
||||||||||
| 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.TestCase
org.jcoderz.commons.logging.FormatTest
public class FormatTest
This class is used for testing the various Formats, especially if they are symmetric, i.e. whether parsing the string of a formatted object delivers the object again.
| Constructor Summary | |
|---|---|
FormatTest()
Creates a new instance of this. |
|
FormatTest(String name)
Creates a new instance of this and sets the test case. |
|
| Method Summary | |
|---|---|
void |
testCollectionFormat()
Tests the collection format with string escape and fixe length sub formats. |
void |
testFixLengthFormat()
Tests the fix length format. |
void |
testLogMessage()
Tests formatting and parsing a complete log message with the standard formatters. |
void |
testLogRecord()
Tests formatting and parsing a complete trace log record with the standard formatters. |
void |
testLogRecordWithMultiLineText()
Tests formatting and parsing a complete trace log record with the standard formatters. |
void |
testStringEscapeFormat()
Tests the string escape format. |
| Methods inherited from class org.jcoderz.commons.TestCase |
|---|
getBaseDir, getHostName, getSuite, hasTestCases |
| 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 FormatTest()
public FormatTest(String name)
name - The name of the test case.| Method Detail |
|---|
public void testStringEscapeFormat()
public void testFixLengthFormat()
public void testLogRecord()
public void testLogRecordWithMultiLineText()
public void testLogMessage()
public void testCollectionFormat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||