|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mod4j.runtime.test.AbstractLoggingTest
public abstract class AbstractLoggingTest
Base for Tests that need to verify that loglines are properly written.
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
logger
Can be used to set the Level. |
protected java.util.logging.Handler |
mockHandler
Can be used to 'listen in' on the messages written to the log. |
| Constructor Summary | |
|---|---|
AbstractLoggingTest()
|
|
| Method Summary | |
|---|---|
protected abstract org.apache.commons.logging.Log |
getLog()
The Log we'll work with. |
void |
setUp()
Setup environment before tests. |
void |
tearDown()
Cleanup after tests. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger logger
Level. Is set to Level.ALL in the Before and the old Level
will be reset in the After.
protected java.util.logging.Handler mockHandler
| Constructor Detail |
|---|
public AbstractLoggingTest()
| Method Detail |
|---|
public void setUp()
protected abstract org.apache.commons.logging.Log getLog()
Log we'll work with. Has to be implemented by the subclass.
Log we'll work with.public void tearDown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||