Keel 2.1RC2

org.apache.commons.logging.jdk14
Class CustomConfigTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.logging.jdk14.DefaultConfigTestCase
              extended byorg.apache.commons.logging.jdk14.CustomConfigTestCase
All Implemented Interfaces:
junit.framework.Test

public class CustomConfigTestCase
extends DefaultConfigTestCase

TestCase for JDK 1.4 logging when running on a JDK 1.4 system with custom configuration, so that JDK 1.4 should be selected and an appropriate logger configured per the configuration properties.

Version:
$Revision: 1.3 $ $Date: 2003/03/30 05:22:50 $
Author:
Craig R. McClanahan

Field Summary
protected  TestHandler handler
          The customized Handler we will be using.
protected  java.util.logging.Handler[] handlers
          The underlying Handlers we will be using.
protected  java.util.logging.Logger logger
          The underlying Logger we will be using.
protected  java.util.logging.LogManager manager
          The underlying LogManager we will be using.
protected  java.util.logging.Level[] testLevels
          The message levels that should have been logged.
protected  java.lang.String[] testMessages
          The message strings that should have been logged.
 
Fields inherited from class org.apache.commons.logging.jdk14.DefaultConfigTestCase
factory, log
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
CustomConfigTestCase()
          Construct a new instance of this test case.
CustomConfigTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkLogRecords(boolean thrown)
           
protected  void logExceptionMessages()
           
protected  void logPlainMessages()
           
 void setUp()
          Set up instance variables required by this test case.
protected  void setUpHandlers()
           
protected  void setUpLogger(java.lang.String name)
           
protected  void setUpManager(java.lang.String config)
           
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testExceptionMessages()
           
 void testPlainMessages()
           
 void testPristineHandlers()
           
 void testPristineLog()
           
 void testPristineLogger()
           
 
Methods inherited from class org.apache.commons.logging.jdk14.DefaultConfigTestCase
setUpFactory, setUpLog, testPristineFactory
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, 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, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

handler

protected TestHandler handler

The customized Handler we will be using.


handlers

protected java.util.logging.Handler[] handlers

The underlying Handlers we will be using.


logger

protected java.util.logging.Logger logger

The underlying Logger we will be using.


manager

protected java.util.logging.LogManager manager

The underlying LogManager we will be using.


testLevels

protected java.util.logging.Level[] testLevels

The message levels that should have been logged.


testMessages

protected java.lang.String[] testMessages

The message strings that should have been logged.

Constructor Detail

CustomConfigTestCase

public CustomConfigTestCase()

Construct a new instance of this test case.


CustomConfigTestCase

public CustomConfigTestCase(java.lang.String name)

Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Set up instance variables required by this test case.

Overrides:
setUp in class DefaultConfigTestCase
Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class DefaultConfigTestCase

testExceptionMessages

public void testExceptionMessages()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testPlainMessages

public void testPlainMessages()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testPristineHandlers

public void testPristineHandlers()

testPristineLog

public void testPristineLog()
Overrides:
testPristineLog in class DefaultConfigTestCase

testPristineLogger

public void testPristineLogger()

checkLogRecords

protected void checkLogRecords(boolean thrown)

logExceptionMessages

protected void logExceptionMessages()

logPlainMessages

protected void logPlainMessages()

setUpHandlers

protected void setUpHandlers()
                      throws java.lang.Exception
Throws:
java.lang.Exception

setUpLogger

protected void setUpLogger(java.lang.String name)
                    throws java.lang.Exception
Throws:
java.lang.Exception

setUpManager

protected void setUpManager(java.lang.String config)
                     throws java.lang.Exception
Throws:
java.lang.Exception

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.