bb.util
Class JUnitExecutor.RunListenerAbstract

java.lang.Object
  extended by org.junit.runner.notification.RunListener
      extended by bb.util.JUnitExecutor.RunListenerAbstract
Direct Known Subclasses:
JUnitExecutor.FindTestEvents, JUnitExecutor.StdStreamSwapper, JUnitExecutor.TestRunEvents
Enclosing class:
JUnitExecutor

private abstract static class JUnitExecutor.RunListenerAbstract
extends RunListener

Defines some common functionality used by a couple of (otherwise very different) RunListener implementations.

This class is multithread safe: every method is synchronized.


Field Summary
protected  String className
           
protected  String methodName
           
 
Constructor Summary
protected JUnitExecutor.RunListenerAbstract()
           
 
Method Summary
protected  boolean parseNames(Description description)
          Parses the class name and method name out of description and assigns the results to className and methodName.
 
Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testFailure, testFinished, testIgnored, testRunFinished, testRunStarted, testStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

protected String className

methodName

protected String methodName
Constructor Detail

JUnitExecutor.RunListenerAbstract

protected JUnitExecutor.RunListenerAbstract()
Method Detail

parseNames

protected boolean parseNames(Description description)
                      throws IllegalStateException
Parses the class name and method name out of description and assigns the results to className and methodName.

Returns:
true if className is the same as before, false otherwise
Throws:
IllegalStateException