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 RunListenerpublic void testSetCompleted(ReportEntry 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 List getData()
public String getFirstEvent()
public ReportEntry getFirstData()
public void testAssumptionFailure(ReportEntry report)
testAssumptionFailure in interface RunListenerpublic void info(String message)
info in interface ConsoleLoggerpublic void writeTestOutput(byte[] buf,
                   int off,
                   int len,
                   boolean stdout)
writeTestOutput in interface ConsoleOutputReceiverCopyright © 2004–2013 The Apache Software Foundation. All rights reserved.