|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Callback-style logger interface. There are methods for when an ActionTask or Matcher starts and stops, and when errors, failures and messages are logged within a test.
Loggers are owned (and it's methods invoked) by ActionTask
s and MatcherTest
s. Loggers are created by LoggerFactories
.
ActionTask
,
MatcherTest
,
LoggerFactory
Method Summary | |
void |
actionTaskError(String msg,
Exception e)
Indicates that an error occurred before any of the tests were attempted. |
void |
endActionTask(ActionTask task)
Indicates that an ActionTask has ended. |
void |
endTest(MatcherTest test)
Indicates that a test against the retrieved response has completed. |
void |
setExtension(String ext)
Set the extension of the log file (if any). |
void |
setFilenameFormat(String filenameFormat)
Sets a template with which the names of log files are determined. |
void |
setOverwrite(boolean overwrite)
Set whether the logger should overwrite old log files from previous runs. |
void |
setTodir(File destDir)
Set the destination directory for the log file (if any). |
void |
setUseFile(boolean useFile)
Set whether the logger should log to a file (or stdout). |
void |
startActionTask(ActionTask task)
Indicates that an ActionTask (aka HTTP operation) has started. |
void |
startTest(MatcherTest test)
Indicates the start of a test against the retrieved Response. |
void |
testError(String msg,
Exception e)
ActionTasks may fail unexpectedly, and these are classed as Errors and should be reported here. |
void |
testFailure(String msg,
Exception e)
If the ActionTask fails to validate the service, then a failure should be recorded via this method. |
void |
testLog(String msg)
ActionTasks may log anything they think relevant to the user here. |
Methods inherited from interface org.apache.anteater.test.Groupable |
setGroup, setGroup |
Method Detail |
public void startActionTask(ActionTask task)
public void actionTaskError(String msg, Exception e)
If this event occurs, no further tests are expected to be logged.
public void startTest(MatcherTest test)
public void testLog(String msg)
public void testError(String msg, Exception e)
public void testFailure(String msg, Exception e)
public void endTest(MatcherTest test)
public void endActionTask(ActionTask task)
public void setTodir(File destDir)
public void setUseFile(boolean useFile)
public void setFilenameFormat(String filenameFormat)
public void setOverwrite(boolean overwrite)
public void setExtension(String ext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |