|
Keel 2.1RC2 | ||||||||||
| 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.log4j.DefaultConfigTestCase
org.apache.commons.logging.log4j.CustomConfigTestCase
TestCase for Log4J logging when running on a system with Log4J present, so that Log4J should be selected and an appropriate logger configured per the configuration properties.
| Field Summary | |
protected TestAppender |
appenderThe Appender we are utilizing. |
protected Logger |
loggerThe Logger we are utilizing. |
protected Level[] |
testLevelsThe message levels that should have been logged. |
protected java.lang.String[] |
testMessagesThe message strings that should have been logged. |
| Fields inherited from class org.apache.commons.logging.log4j.DefaultConfigTestCase |
factory, log |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
CustomConfigTestCase()Construct a new instance of this test case. |
|
CustomConfigTestCase(java.lang.String name)Construct a new instance of this test case. |
|
| Method Summary | |
protected void |
checkLoggingEvents(boolean thrown) |
protected void |
logExceptionMessages() |
protected void |
logPlainMessages() |
void |
setUp()Set up instance variables required by this test case. |
protected void |
setUpAppender(java.lang.String config) |
protected void |
setUpLogger(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 |
testExceptionMessages() |
void |
testPlainMessages() |
void |
testPristineAppender() |
void |
testPristineLog() |
void |
testPristineLogger() |
| Methods inherited from class org.apache.commons.logging.log4j.DefaultConfigTestCase |
setUpFactory, setUpLog, testPristineFactory |
| 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 |
protected TestAppender appender
The Appender we are utilizing.
protected Logger logger
The Logger we are utilizing.
protected Level[] testLevels
The message levels that should have been logged.
protected java.lang.String[] testMessages
The message strings that should have been logged.
| Constructor Detail |
public CustomConfigTestCase()
Construct a new instance of this test case.
public CustomConfigTestCase(java.lang.String name)
Construct a new instance of this test case.
name - Name of the test case| Method Detail |
public void setUp()
throws java.lang.Exception
setUp in class DefaultConfigTestCasejava.lang.Exceptionpublic static junit.framework.Test suite()
public void tearDown()
tearDown in class DefaultConfigTestCase
public void testExceptionMessages()
throws java.lang.Exception
java.lang.Exception
public void testPlainMessages()
throws java.lang.Exception
java.lang.Exceptionpublic void testPristineAppender()
public void testPristineLog()
testPristineLog in class DefaultConfigTestCasepublic void testPristineLogger()
protected void checkLoggingEvents(boolean thrown)
protected void logExceptionMessages()
protected void logPlainMessages()
protected void setUpAppender(java.lang.String config)
throws java.lang.Exception
java.lang.Exception
protected void setUpLogger(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||