org.apache.maven.surefire.junitcore
Class ConcurrentReportingRunListener
java.lang.Object
org.junit.runner.notification.RunListener
org.apache.maven.surefire.junitcore.ConcurrentReportingRunListener
- Direct Known Subclasses:
- ConcurrentReportingRunListener.ClassesParallelRunListener, ConcurrentReportingRunListener.MethodsParallelRunListener
public abstract class ConcurrentReportingRunListener
- extends RunListener
- Author:
- Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classMethodCounts
protected Map<Class,TestSet> classMethodCounts
reporterManager
protected final ReporterManager reporterManager
reportImmediately
protected final boolean reportImmediately
ConcurrentReportingRunListener
public ConcurrentReportingRunListener(ReporterManagerFactory reporterFactory,
boolean reportImmediately)
throws TestSetFailedException
- Throws:
TestSetFailedException
testRunStarted
public void testRunStarted(Description description)
throws Exception
- Overrides:
testRunStarted
in class RunListener
- Throws:
Exception
testRunFinished
public void testRunFinished(Result result)
throws Exception
- Overrides:
testRunFinished
in class RunListener
- Throws:
Exception
getTestMethod
protected org.apache.maven.surefire.junitcore.TestMethod getTestMethod()
detachTestMethodFromThread
protected void detachTestMethodFromThread()
getTestSet
protected TestSet getTestSet(Description description)
testFailure
public void testFailure(Failure failure)
throws Exception
- Overrides:
testFailure
in class RunListener
- Throws:
Exception
testAssumptionFailure
public void testAssumptionFailure(Failure failure)
- Overrides:
testAssumptionFailure
in class RunListener
testIgnored
public void testIgnored(Description description)
throws Exception
- Overrides:
testIgnored
in class RunListener
- Throws:
Exception
testStarted
public void testStarted(Description description)
throws Exception
- Overrides:
testStarted
in class RunListener
- Throws:
Exception
checkIfTestSetCanBeReported
public abstract void checkIfTestSetCanBeReported(TestSet testSetForTest)
testFinished
public void testFinished(Description description)
throws Exception
- Overrides:
testFinished
in class RunListener
- Throws:
Exception
createInstance
public static ConcurrentReportingRunListener createInstance(ReporterManagerFactory reporterManagerFactory,
boolean parallelClasses,
boolean parallelBoth)
throws TestSetFailedException
- Throws:
TestSetFailedException
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.