|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.logging.config.PriorityConfigTestCase
public class PriorityConfigTestCase
Tests that verify that the process of configuring logging on startup works correctly by selecting the file with the highest priority.
This test sets up a classpath where:
Note that parentFirst=true is used in this test because method
PathableClassLoader.getResources always behaves as if
parentFirst=true; see the PathableClassLoader javadoc for details.
| Constructor Summary | |
|---|---|
PriorityConfigTestCase()
|
|
| 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 |
testPriority()
Verify that the config file being used is the one containing the desired configId value. |
| 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 |
|---|
public PriorityConfigTestCase()
| Method Detail |
|---|
public static junit.framework.Test suite()
throws Exception
Exception
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void tearDown()
tearDown in class junit.framework.TestCase
public void testPriority()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||