Class NoExceptionRunListenerDecorator
- java.lang.Object
-
- org.junit.runner.notification.RunListener
-
- com.carrotsearch.ant.tasks.junit4.slave.NoExceptionRunListenerDecorator
-
public abstract class NoExceptionRunListenerDecorator extends org.junit.runner.notification.RunListenerRunListenerdecorator that does something before and after a given method call. A fancier impl. could use aProxybutRunListeneris not an interface.
-
-
Field Summary
Fields Modifier and Type Field Description private org.junit.runner.notification.RunListenerdelegate
-
Constructor Summary
Constructors Constructor Description NoExceptionRunListenerDecorator(org.junit.runner.notification.RunListener delegate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidexception(java.lang.Throwable t)voidtestAssumptionFailure(org.junit.runner.notification.Failure failure)voidtestFailure(org.junit.runner.notification.Failure failure)voidtestFinished(org.junit.runner.Description description)voidtestIgnored(org.junit.runner.Description description)voidtestRunFinished(org.junit.runner.Result result)voidtestRunStarted(org.junit.runner.Description description)voidtestStarted(org.junit.runner.Description description)
-
-
-
Method Detail
-
testRunStarted
public final void testRunStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testRunStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testRunFinished
public final void testRunFinished(org.junit.runner.Result result) throws java.lang.Exception- Overrides:
testRunFinishedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testStarted
public final void testStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testFinished
public final void testFinished(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testFinishedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testFailure
public final void testFailure(org.junit.runner.notification.Failure failure) throws java.lang.Exception- Overrides:
testFailurein classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testAssumptionFailure
public final void testAssumptionFailure(org.junit.runner.notification.Failure failure)
- Overrides:
testAssumptionFailurein classorg.junit.runner.notification.RunListener
-
testIgnored
public final void testIgnored(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testIgnoredin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
exception
protected abstract void exception(java.lang.Throwable t)
-
-