de.fuberlin.wiwiss.d2rq
Class MockLogger

java.lang.Object
  extended byde.fuberlin.wiwiss.d2rq.helpers.Logger
      extended byde.fuberlin.wiwiss.d2rq.MockLogger

public class MockLogger
extends Logger

Mock implementation of the Logger class for unit testing. It only checks for calls on the Logger.warning(java.lang.String) method.

Author:
Richard Cyganiak

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

expectedMessage

private java.util.List expectedMessage
Constructor Detail

MockLogger

public MockLogger()
Method Detail

expectWarning

public void expectWarning(java.lang.String message)

warning

public void warning(java.lang.String message)
Description copied from class: Logger
Sends a warning message. Warning messages are displayed to the user during normal operation. The default implementation prints the message to standard error.

Overrides:
warning in class Logger
Parameters:
message -

tally

public void tally()