| org.apache.commons.logging.NullClassLoaderTestCase
NullClassLoaderTestCase | public class NullClassLoaderTestCase extends TestCase (Code) | | Test cases for situations where getClassLoader or getContextClassLoader
return null. This can happen when using JDK 1.1. It can also happen when
JCL is deployed via the bootclassloader - something that could be done when
using java in embedded systems.
|
Method Summary | |
public static void | main(String[] args) Main method so this test case can be run direct from the command line. | public void | testSameLogObject() This tests that when getContextClassLoader returns null, the
LogFactory.getLog(name) method still correctly returns the same
log object when called multiple times with the same name. |
main | public static void main(String[] args)(Code) | | Main method so this test case can be run direct from the command line.
|
testSameLogObject | public void testSameLogObject() throws Exception(Code) | | This tests that when getContextClassLoader returns null, the
LogFactory.getLog(name) method still correctly returns the same
log object when called multiple times with the same name.
|
|
|