public static class StatusWriter.Factory extends Object
StatusWriter
using default implementations.
This class is not intended to be subclassed by clients.
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
static StatusWriter |
createHTML()
Returns a writer that produces an HTML stream.
|
static StatusWriter |
createHTML(OperationContext context)
Returns a writer that produces an HTML stream.
|
static StatusWriter |
createJUnit(OperationContext context)
Returns a writer that produces a stream targeted to JUnit non-regression testing.
|
static StatusWriter |
createXML()
Returns a writer that produces an XML stream.
|
public static StatusWriter createXML()
public static StatusWriter createHTML()
public static StatusWriter createHTML(OperationContext context)
The created writer will log information collected in Mapping
instances used in the specified context, if any.
context
- the context in which the main operation was executed.public static StatusWriter createJUnit(OperationContext context)
Here is the information written out in the log:
The log is produced in a XML format where elements are sorted in a way that guarantees successive executions to produce the same log order.
The log content is not necessarily meant to be processed by parsing the XML content. It shall be used to verify a JUnit execution produces the same log as the one registered as 'golden result'.
context
- the context in which the main operation was executed.