public class SuiteHistoryFormatter extends BaseFormatter implements ExecutionLogListener, java.io.Closeable
ExecutionLogListener.ExecutionContext
Constructor and Description |
---|
SuiteHistoryFormatter(FitNesseContext context,
WikiPage page,
TestXmlFormatter.WriterFactory source) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
commandStarted(ExecutionLogListener.ExecutionContext context) |
void |
exceptionOccurred(java.lang.Throwable e) |
void |
exitCode(int exitCode) |
int |
getErrorCount() |
TestSummary |
getPageCounts() |
java.util.List<SuiteExecutionReport.PageHistoryReference> |
getPageHistoryReferences() |
SuiteExecutionReport |
getSuiteExecutionReport() |
void |
stdErr(java.lang.String output) |
void |
stdOut(java.lang.String output) |
void |
testAssertionVerified(Assertion assertion,
TestResult testResult) |
void |
testComplete(TestPage test,
TestSummary testSummary) |
void |
testExceptionOccurred(Assertion assertion,
ExceptionResult exceptionResult) |
void |
testOutputChunk(TestPage testPage,
java.lang.String output)
Appends content to test output.
|
void |
testStarted(TestPage test) |
void |
testSystemStarted(TestSystem testSystem) |
void |
testSystemStopped(TestSystem testSystem,
java.lang.Throwable cause) |
getPage, testOutputChunk
public SuiteHistoryFormatter(FitNesseContext context, WikiPage page, TestXmlFormatter.WriterFactory source)
public void testSystemStarted(TestSystem testSystem)
testSystemStarted
in interface TestSystemListener
public void testSystemStopped(TestSystem testSystem, java.lang.Throwable cause)
testSystemStopped
in interface TestSystemListener
public void testStarted(TestPage test)
testStarted
in interface TestSystemListener
public void testOutputChunk(TestPage testPage, java.lang.String output)
TestSystemListener
testOutputChunk
in interface TestSystemListener
testPage
- current test pageoutput
- content to appendpublic void testComplete(TestPage test, TestSummary testSummary)
testComplete
in interface TestSystemListener
public void testAssertionVerified(Assertion assertion, TestResult testResult)
testAssertionVerified
in interface TestSystemListener
public void testExceptionOccurred(Assertion assertion, ExceptionResult exceptionResult)
testExceptionOccurred
in interface TestSystemListener
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public int getErrorCount()
getErrorCount
in class BaseFormatter
public java.util.List<SuiteExecutionReport.PageHistoryReference> getPageHistoryReferences()
public TestSummary getPageCounts()
public SuiteExecutionReport getSuiteExecutionReport()
public void commandStarted(ExecutionLogListener.ExecutionContext context)
commandStarted
in interface ExecutionLogListener
public void stdOut(java.lang.String output)
stdOut
in interface ExecutionLogListener
public void stdErr(java.lang.String output)
stdErr
in interface ExecutionLogListener
public void exitCode(int exitCode)
exitCode
in interface ExecutionLogListener
public void exceptionOccurred(java.lang.Throwable e)
exceptionOccurred
in interface ExecutionLogListener