Keel 2.1RC2

org.apache.commons.logging.log4j
Class DefaultConfigTestCase

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

public class DefaultConfigTestCase
extends junit.framework.TestCase

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

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

Field Summary
protected  LogFactory factory
          The LogFactory implementation we have selected.
protected  Log log
          The Log implementation we have selected.
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DefaultConfigTestCase()
          Construct a new instance of this test case.
DefaultConfigTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
 void setUp()
          Set up instance variables required by this test case.
protected  void setUpFactory()
           
protected  void setUpLog(java.lang.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()
           
 
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

factory

protected LogFactory factory

The LogFactory implementation we have selected.


log

protected Log log

The Log implementation we have selected.

Constructor Detail

DefaultConfigTestCase

public DefaultConfigTestCase()

Construct a new instance of this test case.


DefaultConfigTestCase

public DefaultConfigTestCase(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.

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.


testPristineLog

public void testPristineLog()

testPristineFactory

public void testPristineFactory()

setUpFactory

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

setUpLog

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

Keel 2.1RC2

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