org.apache.maven.plugin.surefire.booterclient
Class MockReporter

java.lang.Object
  extended by org.apache.maven.plugin.surefire.booterclient.MockReporter
All Implemented Interfaces:
org.apache.maven.surefire.report.ConsoleLogger, org.apache.maven.surefire.report.ConsoleOutputReceiver, org.apache.maven.surefire.report.RunListener

public class MockReporter
extends Object
implements org.apache.maven.surefire.report.RunListener, org.apache.maven.surefire.report.ConsoleLogger, org.apache.maven.surefire.report.ConsoleOutputReceiver

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()
           
 
Method Summary
 List getData()
           
 List getEvents()
           
 org.apache.maven.surefire.report.ReportEntry getFirstData()
           
 String getFirstEvent()
           
 void info(String message)
           
 void testAssumptionFailure(org.apache.maven.surefire.report.ReportEntry report)
           
 void testError(org.apache.maven.surefire.report.ReportEntry report)
           
 void testFailed(org.apache.maven.surefire.report.ReportEntry report)
           
 void testSetCompleted(org.apache.maven.surefire.report.ReportEntry report)
           
 void testSetStarting(org.apache.maven.surefire.report.ReportEntry report)
           
 void testSkipped(org.apache.maven.surefire.report.ReportEntry report)
           
 void testStarting(org.apache.maven.surefire.report.ReportEntry report)
           
 void testSucceeded(org.apache.maven.surefire.report.ReportEntry report)
           
 void writeTestOutput(byte[] buf, int off, int len, 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()
Method Detail

testSetStarting

public void testSetStarting(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testSetStarting in interface org.apache.maven.surefire.report.RunListener

testSetCompleted

public void testSetCompleted(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testSetCompleted in interface org.apache.maven.surefire.report.RunListener

testStarting

public void testStarting(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testStarting in interface org.apache.maven.surefire.report.RunListener

testSucceeded

public void testSucceeded(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testSucceeded in interface org.apache.maven.surefire.report.RunListener

testError

public void testError(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testError in interface org.apache.maven.surefire.report.RunListener

testFailed

public void testFailed(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testFailed in interface org.apache.maven.surefire.report.RunListener

testSkipped

public void testSkipped(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testSkipped in interface org.apache.maven.surefire.report.RunListener

getEvents

public List getEvents()

getData

public List getData()

getFirstEvent

public String getFirstEvent()

getFirstData

public org.apache.maven.surefire.report.ReportEntry getFirstData()

testAssumptionFailure

public void testAssumptionFailure(org.apache.maven.surefire.report.ReportEntry report)
Specified by:
testAssumptionFailure in interface org.apache.maven.surefire.report.RunListener

info

public void info(String message)
Specified by:
info in interface org.apache.maven.surefire.report.ConsoleLogger

writeTestOutput

public void writeTestOutput(byte[] buf,
                            int off,
                            int len,
                            boolean stdout)
Specified by:
writeTestOutput in interface org.apache.maven.surefire.report.ConsoleOutputReceiver


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