org.apache.commons.logging.logkit
Class StandardTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.logging.AbstractLogTest
              extended by org.apache.commons.logging.logkit.StandardTestCase
All Implemented Interfaces:
junit.framework.Test

public class StandardTestCase
extends AbstractLogTest

Basic tests for Avalon LogKit logger adapter.


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
StandardTestCase()
           
 
Method Summary
protected  void checkStandard()
           
 org.apache.commons.logging.Log getLogObject()
          Override the abstract method from the parent class so that the inherited tests can access the right Log object type.
 void setUp()
          Set up instance variables required by this test case.
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 org.apache.commons.logging.AbstractLogTest
testLoggingWithNullParameters
 
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

StandardTestCase

public StandardTestCase()
Method Detail

suite

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

Throws:
Exception

setUp

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

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

tearDown

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

Overrides:
tearDown in class junit.framework.TestCase

getLogObject

public org.apache.commons.logging.Log getLogObject()
Override the abstract method from the parent class so that the inherited tests can access the right Log object type.

Specified by:
getLogObject in class AbstractLogTest

testPristineFactory

public void testPristineFactory()

testPristineLog

public void testPristineLog()

testSerializable

public void testSerializable()
                      throws Exception
Throws:
Exception

checkStandard

protected void checkStandard()


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