com.resilientedge.util.logger.console
Class ZConsoleFormatterTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.resilientedge.util.test.BaseTestCase
                    |
                    +--com.resilientedge.util.logger.console.ZConsoleFormatterTest
All Implemented Interfaces:
junit.framework.Test

public class ZConsoleFormatterTest
extends BaseTestCase

Unit Test for the Console Formatter Class

Author:
jgardner

Constructor Summary
ZConsoleFormatterTest(java.lang.String name)
           
 
Method Summary
 void DISABLED_testFormatDateAndTime()
          Tests the formatting of date and time.
 void testConstruction()
          Test Construction of ConsoleFormatter in verbose and non-Verbose modes.
 void testFormatClassName()
          Tests the formatting of Class Name
 void testFormatException()
          Tests the formatting of a logRecord's exception stack-trace.
 void testFormatWithoutReplacements()
          This method calls the LocalizeAndFormat method and insures that a message is created from the logRecord's raw message.
 void testFormatWithReplacements()
          Tests the text substitution.
 void testGetAndSetLocale()
          Test Locale Mutators
 void testsFormatLevel()
          Tests the formatting of a logRecord's Level
 void testsFormatMessage()
          Tests the formatting of a logRecord's message
 void testsFormatMethodName()
          Tests the formatting of a logRecord's method name
 void testsFormatThreadName()
          Tests the formatting of a logRecord's method Thread Name
 void testsFormatTopic()
          Tests the formatting of a logRecord's Topic
 
Methods inherited from class com.resilientedge.util.test.BaseTestCase
log, lookupConfig, lookupConfig
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZConsoleFormatterTest

public ZConsoleFormatterTest(java.lang.String name)
Parameters:
name -  
Method Detail

testConstruction

public void testConstruction()
                      throws java.lang.Exception
Test Construction of ConsoleFormatter in verbose and non-Verbose modes.
Throws:
java.lang.Exception -  

testGetAndSetLocale

public void testGetAndSetLocale()
                         throws java.lang.Exception
Test Locale Mutators
Throws:
java.lang.Exception -  

testFormatWithoutReplacements

public void testFormatWithoutReplacements()
                                   throws java.lang.Exception
This method calls the LocalizeAndFormat method and insures that a message is created from the logRecord's raw message.
Throws:
java.lang.Exception -  

testFormatWithReplacements

public void testFormatWithReplacements()
                                throws java.lang.Exception
Tests the text substitution.
Throws:
java.lang.Exception -  

testFormatClassName

public void testFormatClassName()
                         throws java.lang.Exception
Tests the formatting of Class Name
Throws:
java.lang.Exception -  

DISABLED_testFormatDateAndTime

public void DISABLED_testFormatDateAndTime()
                                    throws java.lang.Exception
Tests the formatting of date and time. This test no longer works, since we're using a shorter date format.
Throws:
java.lang.Exception -  

testFormatException

public void testFormatException()
                         throws java.lang.Exception
Tests the formatting of a logRecord's exception stack-trace.
Throws:
java.lang.Exception -  

testsFormatLevel

public void testsFormatLevel()
                      throws java.lang.Exception
Tests the formatting of a logRecord's Level
Throws:
java.lang.Exception -  

testsFormatMessage

public void testsFormatMessage()
                        throws java.lang.Exception
Tests the formatting of a logRecord's message
Throws:
java.lang.Exception -  

testsFormatMethodName

public void testsFormatMethodName()
                           throws java.lang.Exception
Tests the formatting of a logRecord's method name
Throws:
java.lang.Exception -  

testsFormatThreadName

public void testsFormatThreadName()
                           throws java.lang.Exception
Tests the formatting of a logRecord's method Thread Name
Throws:
java.lang.Exception -  

testsFormatTopic

public void testsFormatTopic()
                      throws java.lang.Exception
Tests the formatting of a logRecord's Topic
Throws:
java.lang.Exception -  


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.