|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.types.DataType
|
+--org.apache.anteater.test.BaseDataType
|
+--org.apache.anteater.test.log.BaseLogger
|
+--org.apache.anteater.test.log.XMLLogger
Logger that writes XML log files compatible (slightly extending) with those from the <junit> task's XML formatter.
| Nested Class Summary |
| Nested classes inherited from class org.apache.anteater.test.log.BaseLogger |
BaseLogger.TestLog |
| Field Summary | |
protected String |
DEFAULT_LOGDIR
Directory relative to ${basedir} which will be the default location for log files, unless the 'todir' property is set. |
| Fields inherited from class org.apache.anteater.test.log.BaseLogger |
_destDir, _dt, _errors, _extension, _failures, _filenameFormat, _overwrite, _t0, _tasks, _testLog, _useFile |
| Fields inherited from class org.apache.anteater.test.BaseDataType |
debug, debugWasSet |
| Fields inherited from class org.apache.tools.ant.types.DataType |
checked, description, ref |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Constructor Summary | |
XMLLogger()
|
|
| 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. |
protected String |
getFilenameFormat(ActionTask task)
Get the format for log files. |
protected boolean |
getOverwrite(ActionTask task)
Decide whether we're meant to be clobbering old log files |
protected String |
getProperty(ActionTask task,
String key)
Return a non-null value for a property. |
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 class org.apache.anteater.test.log.BaseLogger |
setExtension, setFilenameFormat, setOverwrite, setTodir, setUseFile |
| Methods inherited from class org.apache.anteater.test.BaseDataType |
debug, getDataTypeName, getDebug, getGroup, getRef, print, println, setDebug, setGroup, setGroup, setRefid |
| Methods inherited from class org.apache.tools.ant.types.DataType |
circularReference, dieOnCircularReference, getCheckedRef, getDescription, isReference, noChildrenAllowed, setDescription, tooManyAttributes |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.anteater.test.log.Logger |
setExtension, setFilenameFormat, setOverwrite, setTodir, setUseFile |
| Methods inherited from interface org.apache.anteater.test.Groupable |
setGroup, setGroup |
| Field Detail |
protected String DEFAULT_LOGDIR
| Constructor Detail |
public XMLLogger()
| Method Detail |
public void startActionTask(ActionTask task)
Logger
startActionTask in interface LoggerstartActionTask in class BaseLogger
public void actionTaskError(String msg,
Exception e)
LoggerIf this event occurs, no further tests are expected to be logged.
actionTaskError in interface Loggerpublic void startTest(MatcherTest test)
Logger
startTest in interface LoggerstartTest in class BaseLoggerpublic void testLog(String msg)
Logger
testLog in interface LoggertestLog in class BaseLogger
public void testError(String msg,
Exception e)
Logger
testError in interface LoggertestError in class BaseLogger
public void testFailure(String msg,
Exception e)
Logger
testFailure in interface LoggertestFailure in class BaseLoggerpublic void endTest(MatcherTest test)
Logger
endTest in interface LoggerendTest in class BaseLoggerpublic void endActionTask(ActionTask task)
Logger
endActionTask in interface LoggerendActionTask in class BaseLoggerprotected boolean getOverwrite(ActionTask task)
protected String getFilenameFormat(ActionTask task)
protected String getProperty(ActionTask task,
String key)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||