org.apache.maven.surefire.junitcore
Class ConcurrentReportingRunListener

java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by org.apache.maven.surefire.junitcore.ConcurrentReportingRunListener
Direct Known Subclasses:
ConcurrentReportingRunListener.ClassesParallelRunListener, ConcurrentReportingRunListener.MethodsParallelRunListener

public abstract class ConcurrentReportingRunListener
extends RunListener

Author:
Kristian Rosenvold

Nested Class Summary
static class ConcurrentReportingRunListener.ClassesParallelRunListener
           
static class ConcurrentReportingRunListener.MethodsParallelRunListener
           
 
Field Summary
protected  Map<Class,TestSet> classMethodCounts
           
protected  ReporterManager reporterManager
           
protected  boolean reportImmediately
           
 
Constructor Summary
ConcurrentReportingRunListener(ReporterManagerFactory reporterFactory, boolean reportImmediately)
           
 
Method Summary
abstract  void checkIfTestSetCanBeReported(TestSet testSetForTest)
           
static ConcurrentReportingRunListener createInstance(ReporterManagerFactory reporterManagerFactory, boolean parallelClasses, boolean parallelBoth)
           
protected  void detachTestMethodFromThread()
           
protected  org.apache.maven.surefire.junitcore.TestMethod getTestMethod()
           
protected  TestSet getTestSet(Description description)
           
 void testAssumptionFailure(Failure failure)
           
 void testFailure(Failure failure)
           
 void testFinished(Description description)
           
 void testIgnored(Description description)
           
 void testRunFinished(Result result)
           
 void testRunStarted(Description description)
           
 void testStarted(Description description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classMethodCounts

protected Map<Class,TestSet> classMethodCounts

reporterManager

protected final ReporterManager reporterManager

reportImmediately

protected final boolean reportImmediately
Constructor Detail

ConcurrentReportingRunListener

public ConcurrentReportingRunListener(ReporterManagerFactory reporterFactory,
                                      boolean reportImmediately)
                               throws TestSetFailedException
Throws:
TestSetFailedException
Method Detail

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.