org.apache.commons.logging.jdk14
Class DefaultConfigTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.logging.jdk14.DefaultConfigTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CustomConfigTestCase

public class DefaultConfigTestCase
extends junit.framework.TestCase

TestCase for JDK 1.4 logging when running on a JDK 1.4 system with zero configuration, and with Log4J not present (so JDK 1.4 logging should be automatically configured.

Version:
$Revision: 427808 $ $Date: 2006-08-02 02:08:20 +0200 (on, 02 aug 2006) $
Author:
Craig R. McClanahan

Field Summary
protected  org.apache.commons.logging.LogFactory factory
          The LogFactory implementation we have selected.
protected  org.apache.commons.logging.Log log
          The Log implementation we have selected.
 
Constructor Summary
DefaultConfigTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkLog()
           
 void setUp()
          Set up instance variables required by this test case.
protected  void setUpFactory()
           
protected  void setUpLog(String name)
           
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 testPristineFactory()
           
 void testPristineLog()
           
 void testSerializable()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

factory

protected org.apache.commons.logging.LogFactory factory

The LogFactory implementation we have selected.


log

protected org.apache.commons.logging.Log log

The Log implementation we have selected.

Constructor Detail

DefaultConfigTestCase

public DefaultConfigTestCase(String name)

Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

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

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

suite

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

Throws:
Exception

tearDown

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

Overrides:
tearDown in class junit.framework.TestCase

testPristineLog

public void testPristineLog()

testPristineFactory

public void testPristineFactory()

testSerializable

public void testSerializable()
                      throws Exception
Throws:
Exception

checkLog

protected void checkLog()

setUpFactory

protected void setUpFactory()
                     throws Exception
Throws:
Exception

setUpLog

protected void setUpLog(String name)
                 throws Exception
Throws:
Exception


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.