org.apache.commons.logging.tccl.logfactory
Class TcclEnabledTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.logging.tccl.logfactory.TcclEnabledTestCase
All Implemented Interfaces:
junit.framework.Test

public class TcclEnabledTestCase
extends junit.framework.TestCase

Verify that by default a custom LogFactoryImpl is loaded from the tccl classloader.


Constructor Summary
TcclEnabledTestCase()
           
 
Method Summary
 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 testLoader()
          Verify that MyLogFactoryImpl is only loadable via the tccl.
 void testTcclLoading()
          Verify that the custom LogFactory implementation which is only accessable via the TCCL has successfully been loaded as specified in the config file.
 
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
 

Constructor Detail

TcclEnabledTestCase

public TcclEnabledTestCase()
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

testLoader

public void testLoader()
                throws Exception
Verify that MyLogFactoryImpl is only loadable via the tccl.

Throws:
Exception

testTcclLoading

public void testTcclLoading()
                     throws Exception
Verify that the custom LogFactory implementation which is only accessable via the TCCL has successfully been loaded as specified in the config file. This proves that the TCCL was used to load that class.

Throws:
Exception


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