|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.surefire.booterclient.MockReporter
public class MockReporter
Internal use only
Field Summary | |
---|---|
static String |
CONSOLE_OUTPUT
|
static String |
SET_COMPLETED
|
static String |
SET_STARTING
|
static String |
STDERR
|
static String |
STDOUT
|
static String |
TEST_ASSUMPTION_FAIL
|
static String |
TEST_ERROR
|
static String |
TEST_FAILED
|
static String |
TEST_SKIPPED
|
static String |
TEST_STARTING
|
static String |
TEST_SUCCEEDED
|
Constructor Summary | |
---|---|
MockReporter()
|
Method Summary | |
---|---|
List |
getData()
|
List |
getEvents()
|
ReportEntry |
getFirstData()
|
String |
getFirstEvent()
|
void |
info(String message)
|
void |
testAssumptionFailure(ReportEntry report)
Event fired when a test assumption failure was encountered. |
void |
testError(ReportEntry report)
Event fired when a test ended with an error (non anticipated problem) |
void |
testFailed(ReportEntry report)
Event fired when a test ended with a failure (anticipated problem) |
void |
testSetCompleted(ReportEntry report)
Indicates end of a given test-set |
void |
testSetStarting(ReportEntry report)
Indicates the start of a given test-set |
void |
testSkipped(ReportEntry report)
Event fired when a test is skipped |
void |
testStarting(ReportEntry report)
Event fired when a test is about to start |
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully |
void |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
Forwards process output from the running test-case into the reporting system |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SET_STARTING
public static final String SET_COMPLETED
public static final String TEST_STARTING
public static final String TEST_SUCCEEDED
public static final String TEST_FAILED
public static final String TEST_ERROR
public static final String TEST_SKIPPED
public static final String TEST_ASSUMPTION_FAIL
public static final String CONSOLE_OUTPUT
public static final String STDOUT
public static final String STDERR
Constructor Detail |
---|
public MockReporter()
Method Detail |
---|
public void testSetStarting(ReportEntry report)
RunListener
testSetStarting
in interface RunListener
report
- the report entry describing the testsetpublic void testSetCompleted(ReportEntry report)
RunListener
testSetCompleted
in interface RunListener
report
- the report entry describing the testsetpublic void testStarting(ReportEntry report)
RunListener
testStarting
in interface RunListener
report
- The report entry to log forpublic void testSucceeded(ReportEntry report)
RunListener
testSucceeded
in interface RunListener
report
- The report entry to log forpublic void testError(ReportEntry report)
RunListener
testError
in interface RunListener
report
- The report entry to log forpublic void testFailed(ReportEntry report)
RunListener
testFailed
in interface RunListener
report
- The report entry to log forpublic void testSkipped(ReportEntry report)
RunListener
testSkipped
in interface RunListener
report
- The report entry to log forpublic List getEvents()
public List getData()
public String getFirstEvent()
public ReportEntry getFirstData()
public void testAssumptionFailure(ReportEntry report)
RunListener
testAssumptionFailure
in interface RunListener
report
- The report entry to log forpublic void info(String message)
info
in interface ConsoleLogger
public void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
ConsoleOutputReceiver
writeTestOutput
in interface ConsoleOutputReceiver
buf
- the buffer to writeoff
- offsetlen
- lenstdout
- Indicates if this is stdout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |