public class MockReporter extends Object implements RunListener, org.apache.maven.plugin.surefire.log.api.ConsoleLogger, ConsoleOutputReceiver
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
MockReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message) |
void |
error(String message) |
void |
error(String message,
Throwable t) |
void |
error(Throwable t) |
List |
getData() |
List<String> |
getEvents() |
ReportEntry |
getFirstData() |
String |
getFirstEvent() |
void |
info(String message) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isWarnEnabled() |
void |
testAssumptionFailure(ReportEntry report) |
void |
testError(ReportEntry report) |
void |
testExecutionSkippedByUser() |
void |
testFailed(ReportEntry report) |
void |
testSetCompleted(TestSetReportEntry report) |
void |
testSetStarting(TestSetReportEntry report) |
void |
testSkipped(ReportEntry report) |
void |
testSkippedByUser(ReportEntry report) |
void |
testStarting(ReportEntry report) |
void |
testSucceeded(ReportEntry report) |
void |
warning(String message) |
void |
writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout) |
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
public void testSetStarting(TestSetReportEntry report)
testSetStarting in interface RunListenerpublic void testSetCompleted(TestSetReportEntry report)
testSetCompleted in interface RunListenerpublic void testStarting(ReportEntry report)
testStarting in interface RunListenerpublic void testSucceeded(ReportEntry report)
testSucceeded in interface RunListenerpublic void testError(ReportEntry report)
testError in interface RunListenerpublic void testFailed(ReportEntry report)
testFailed in interface RunListenerpublic void testSkipped(ReportEntry report)
testSkipped in interface RunListenerpublic void testExecutionSkippedByUser()
testExecutionSkippedByUser in interface RunListenerpublic void testSkippedByUser(ReportEntry report)
public List getData()
public String getFirstEvent()
public ReportEntry getFirstData()
public void testAssumptionFailure(ReportEntry report)
testAssumptionFailure in interface RunListenerpublic boolean isDebugEnabled()
isDebugEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void debug(String message)
debug in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic boolean isInfoEnabled()
isInfoEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void info(String message)
info in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic boolean isWarnEnabled()
isWarnEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void warning(String message)
warning in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic boolean isErrorEnabled()
isErrorEnabled in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void error(String message)
error in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void error(String message, Throwable t)
error in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void error(Throwable t)
error in interface org.apache.maven.plugin.surefire.log.api.ConsoleLoggerpublic void writeTestOutput(byte[] buf,
int off,
int len,
boolean stdout)
writeTestOutput in interface ConsoleOutputReceiverCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.