|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.test.LogChecker
public class LogChecker
JUnit utility class that listens to DFC log events and logs any errors/warnings and can be used to fail a test if any are logged.
Example:
protected void setUp ()
{
checker = new LogChecker ();
...
}
public void tearDown ()
{
checker.assertOk ();
...
}
| Constructor Summary | |
|---|---|
LogChecker()
|
|
| Method Summary | |
|---|---|
void |
assertOk()
If any log errors/warnings have been detected since construction, throw an AssertionFailedError exception. |
void |
messageReceived(LogEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogChecker()
| Method Detail |
|---|
public void messageReceived(LogEvent e)
messageReceived in interface LogListener
public void assertOk()
throws junit.framework.AssertionFailedError
junit.framework.AssertionFailedError
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||