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