|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.helpers.Logger
de.fuberlin.wiwiss.d2rq.MockLogger
Mock implementation of the Logger
class for unit testing. It only
checks for calls on the Logger.warning(java.lang.String)
method.
Field Summary | |
private java.util.List |
expectedMessage
|
Fields inherited from class de.fuberlin.wiwiss.d2rq.helpers.Logger |
|
Constructor Summary | |
MockLogger()
|
Method Summary | |
void |
expectWarning(java.lang.String message)
|
void |
tally()
|
void |
warning(java.lang.String message)
Sends a warning message. |
Methods inherited from class de.fuberlin.wiwiss.d2rq.helpers.Logger |
debug, debugEnabled, error, instance, setDebug, setInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.List expectedMessage
Constructor Detail |
public MockLogger()
Method Detail |
public void expectWarning(java.lang.String message)
public void warning(java.lang.String message)
Logger
warning
in class Logger
message
- public void tally()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |