org.apache.maven.surefire.report
Class MockReporter

java.lang.Object
  extended by org.apache.maven.surefire.report.MockReporter
All Implemented Interfaces:
DirectConsoleReporter, RunListener

public class MockReporter
extends Object
implements RunListener, DirectConsoleReporter

Internal use only


Field Summary
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 Summary
MockReporter()
           
MockReporter(ReporterConfiguration reporterConfiguration)
           
 
Method Summary
 List getData()
           
 List getEvents()
           
 ReportEntry getFirstData()
           
 String getFirstEvent()
           
 String getFirstStringData()
           
 int getTestFailed()
           
 int getTestIgnored()
           
 int getTestSucceeded()
           
 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 writeMessage(String message)
           
 void writeTestOutput(byte[] buf, int off, int len, boolean stdout)
           
 void writeTestOutput(String output, boolean stdout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_STARTING

public static final String SET_STARTING
See Also:
Constant Field Values

SET_COMPLETED

public static final String SET_COMPLETED
See Also:
Constant Field Values

TEST_STARTING

public static final String TEST_STARTING
See Also:
Constant Field Values

TEST_SUCCEEDED

public static final String TEST_SUCCEEDED
See Also:
Constant Field Values

TEST_FAILED

public static final String TEST_FAILED
See Also:
Constant Field Values

TEST_ERROR

public static final String TEST_ERROR
See Also:
Constant Field Values

TEST_SKIPPED

public static final String TEST_SKIPPED
See Also:
Constant Field Values

TEST_ASSUMPTION_FAIL

public static final String TEST_ASSUMPTION_FAIL
See Also:
Constant Field Values

CONSOLE_OUTPUT

public static final String CONSOLE_OUTPUT
See Also:
Constant Field Values

STDOUT

public static final String STDOUT
See Also:
Constant Field Values

STDERR

public static final String STDERR
See Also:
Constant Field Values
Constructor Detail

MockReporter

public MockReporter()

MockReporter

public MockReporter(ReporterConfiguration reporterConfiguration)
Method Detail

testSetStarting

public void testSetStarting(ReportEntry report)
Specified by:
testSetStarting in interface RunListener

testSetCompleted

public void testSetCompleted(ReportEntry report)
Specified by:
testSetCompleted in interface RunListener

testStarting

public void testStarting(ReportEntry report)
Specified by:
testStarting in interface RunListener

testSucceeded

public void testSucceeded(ReportEntry report)
Specified by:
testSucceeded in interface RunListener

testError

public void testError(ReportEntry report)
Specified by:
testError in interface RunListener

testFailed

public void testFailed(ReportEntry report)
Specified by:
testFailed in interface RunListener

testSkipped

public void testSkipped(ReportEntry report)
Specified by:
testSkipped in interface RunListener

getEvents

public List getEvents()

getData

public List getData()

getFirstEvent

public String getFirstEvent()

getFirstData

public ReportEntry getFirstData()

getFirstStringData

public String getFirstStringData()

getTestSucceeded

public int getTestSucceeded()

getTestIgnored

public int getTestIgnored()

getTestFailed

public int getTestFailed()

testAssumptionFailure

public void testAssumptionFailure(ReportEntry report)
Specified by:
testAssumptionFailure in interface RunListener

writeTestOutput

public void writeTestOutput(String output,
                            boolean stdout)

writeMessage

public void writeMessage(String message)
Specified by:
writeMessage in interface DirectConsoleReporter

writeTestOutput

public void writeTestOutput(byte[] buf,
                            int off,
                            int len,
                            boolean stdout)


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.