com.resilientedge.util.logger
Class ZMemoryHandlerTest

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

public class ZMemoryHandlerTest
extends BaseTestCase

Unit Test for the MemoryHandler Class

Author:
gq

Constructor Summary
ZMemoryHandlerTest(java.lang.String name)
           
 
Method Summary
 void testConstruction()
          Test construction and getting name
 void testSetupAndPublish()
          Tests the setup of a Memory handler such that it will publish a logRecord.
 
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

ZMemoryHandlerTest

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

testConstruction

public void testConstruction()
                      throws java.lang.Exception
Test construction and getting name
Throws:
java.lang.Exception -  

testSetupAndPublish

public void testSetupAndPublish()
                         throws java.lang.Exception
Tests the setup of a Memory handler such that it will publish a logRecord. This test requires a visual check to see that something was actually logged.
Throws:
java.lang.Exception -  


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