public class MockReporter extends java.lang.Object implements RunListener
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
events |
static java.lang.String |
SET_COMPLETED |
static java.lang.String |
SET_STARTED |
static java.lang.String |
TEST_COMPLETED |
static java.lang.String |
TEST_SKIPPED |
static java.lang.String |
TEST_STARTED |
private java.util.concurrent.atomic.AtomicInteger |
testError |
private java.util.concurrent.atomic.AtomicInteger |
testFailed |
private java.util.concurrent.atomic.AtomicInteger |
testIgnored |
private java.util.concurrent.atomic.AtomicInteger |
testSucceeded |
Constructor and Description |
---|
MockReporter() |
Modifier and Type | Method and Description |
---|---|
int |
getTestFailed() |
int |
getTestSucceeded() |
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 |
testExecutionSkippedByUser()
Event fired skipping an execution of remaining test-set in other fork(s); or does nothing if no forks.
|
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 |
testSkippedByUser(ReportEntry report) |
void |
testStarting(ReportEntry report)
Event fired when a test is about to start
|
void |
testSucceeded(ReportEntry report)
Event fired when a test ended successfully
|
private final java.util.List<java.lang.String> events
public static final java.lang.String SET_STARTED
public static final java.lang.String SET_COMPLETED
public static final java.lang.String TEST_STARTED
public static final java.lang.String TEST_COMPLETED
public static final java.lang.String TEST_SKIPPED
private final java.util.concurrent.atomic.AtomicInteger testSucceeded
private final java.util.concurrent.atomic.AtomicInteger testIgnored
private final java.util.concurrent.atomic.AtomicInteger testFailed
private final java.util.concurrent.atomic.AtomicInteger testError
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 testSkipped(ReportEntry report)
RunListener
testSkipped
in interface RunListener
report
- The report entry to log forpublic void testExecutionSkippedByUser()
RunListener
SurefireProvider
.(The event is fired after the Nth test failed to signal skipping the rest of test-set.)
testExecutionSkippedByUser
in interface RunListener
public void testSkippedByUser(ReportEntry report)
public int getTestSucceeded()
public int getTestFailed()
public 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 testAssumptionFailure(ReportEntry report)
RunListener
testAssumptionFailure
in interface RunListener
report
- The report entry to log for