com.resilientedge.util.logger
Class ZSimpleLoggerTest

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

public class ZSimpleLoggerTest
extends BaseTestCase

Unit Test for the SimpleLogger Class

Author:
jgardner

Constructor Summary
ZSimpleLoggerTest(java.lang.String name)
           
 
Method Summary
 void DISABLED_testLogException()
          Test the logging (to Weblogic) of a log message which includes an exception.
 void DISABLEDtestLogAllLevels()
          Logs to Weblogic using each of the 6 levels.
 void testAddAndRemoveHandler()
          Test addition and removal of a Logger's handlers.
 void testConstruction()
          Test Construction of SimpleLogger
 void testLog()
          Test trace-logging to Weblogic using a SimpleLogger configured with a non-filtering Logger Filter and a Weblogic Handler.
 void testLog2()
          Test Verbose loggin to Weblogic.
 void testSetEnabled()
          Test Enabled state mutators.
 
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

ZSimpleLoggerTest

public ZSimpleLoggerTest(java.lang.String name)
Parameters:
name - Parameter Description
Method Detail

DISABLEDtestLogAllLevels

public void DISABLEDtestLogAllLevels()
                              throws java.lang.Exception
Logs to Weblogic using each of the 6 levels. Logger's filter is set to minimum possible value so no filtering occurs. Requires visual check of output.
Throws:
java.lang.Exception -  

DISABLED_testLogException

public void DISABLED_testLogException()
                               throws java.lang.Exception
Test the logging (to Weblogic) of a log message which includes an exception. The Weblogic API does not support logging of exceptions at all levels. Since this is a requirement, we have adapted our API such that it will support logging of exceptions at all levels. This test utilizes all 9 levels of logging. The output generated by this test will print an exception stack trace on all 9 log() calls.
Throws:
java.lang.Exception -  

testConstruction

public void testConstruction()
                      throws java.lang.Exception
Test Construction of SimpleLogger
Throws:
java.lang.Exception -  

testAddAndRemoveHandler

public void testAddAndRemoveHandler()
                             throws java.lang.Exception
Test addition and removal of a Logger's handlers.
Throws:
java.lang.Exception -  

testSetEnabled

public void testSetEnabled()
                    throws java.lang.Exception
Test Enabled state mutators.
Throws:
java.lang.Exception -  

testLog

public void testLog()
             throws java.lang.Exception
Test trace-logging to Weblogic using a SimpleLogger configured with a non-filtering Logger Filter and a Weblogic Handler. Requires visual check of output.
Throws:
java.lang.Exception -  

testLog2

public void testLog2()
              throws java.lang.Exception
Test Verbose loggin to Weblogic. Requires visual check of output.
Throws:
java.lang.Exception -  


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