public class MockReporter extends Object implements RunListener, 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 |
---|---|
List |
getData() |
List<String> |
getEvents() |
ReportEntry |
getFirstData() |
String |
getFirstEvent() |
void |
info(String message) |
void |
testAssumptionFailure(ReportEntry report) |
void |
testError(ReportEntry report) |
void |
testFailed(ReportEntry report) |
void |
testSetCompleted(ReportEntry report) |
void |
testSetStarting(ReportEntry report) |
void |
testSkipped(ReportEntry report) |
void |
testStarting(ReportEntry report) |
void |
testSucceeded(ReportEntry report) |
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(ReportEntry report)
testSetStarting
in interface RunListener
public void testSetCompleted(ReportEntry 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 List getData()
public String getFirstEvent()
public ReportEntry getFirstData()
public void testAssumptionFailure(ReportEntry report)
testAssumptionFailure
in interface RunListener
public void info(String message)
info
in interface ConsoleLogger
public void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
writeTestOutput
in interface ConsoleOutputReceiver
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.