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.RunListener
RunListener
decorator that does something before and after a given method call. A fancier impl. could use aProxy
butRunListener
is not an interface.
-
-
Field Summary
Fields Modifier and Type Field Description private org.junit.runner.notification.RunListener
delegate
-
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 void
exception(java.lang.Throwable t)
void
testAssumptionFailure(org.junit.runner.notification.Failure failure)
void
testFailure(org.junit.runner.notification.Failure failure)
void
testFinished(org.junit.runner.Description description)
void
testIgnored(org.junit.runner.Description description)
void
testRunFinished(org.junit.runner.Result result)
void
testRunStarted(org.junit.runner.Description description)
void
testStarted(org.junit.runner.Description description)
-
-
-
Method Detail
-
testRunStarted
public final void testRunStarted(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testRunStarted
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
testRunFinished
public final void testRunFinished(org.junit.runner.Result result) throws java.lang.Exception
- Overrides:
testRunFinished
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
testStarted
public final void testStarted(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testStarted
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
testFinished
public final void testFinished(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testFinished
in 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:
testFailure
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
testAssumptionFailure
public final void testAssumptionFailure(org.junit.runner.notification.Failure failure)
- Overrides:
testAssumptionFailure
in classorg.junit.runner.notification.RunListener
-
testIgnored
public final void testIgnored(org.junit.runner.Description description) throws java.lang.Exception
- Overrides:
testIgnored
in classorg.junit.runner.notification.RunListener
- Throws:
java.lang.Exception
-
exception
protected abstract void exception(java.lang.Throwable t)
-
-