public abstract class BeforeAfterRunListenerDecorator
extends org.junit.runner.notification.RunListener
RunListener
decorator that does something before and after a given method call.
A fancier impl. could use a Proxy
but RunListener
is not an interface.Constructor and Description |
---|
BeforeAfterRunListenerDecorator(org.junit.runner.notification.RunListener delegate) |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
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) |
public BeforeAfterRunListenerDecorator(org.junit.runner.notification.RunListener delegate)
public final void testRunStarted(org.junit.runner.Description description) throws Exception
testRunStarted
in class org.junit.runner.notification.RunListener
Exception
public final void testRunFinished(org.junit.runner.Result result) throws Exception
testRunFinished
in class org.junit.runner.notification.RunListener
Exception
public final void testStarted(org.junit.runner.Description description) throws Exception
testStarted
in class org.junit.runner.notification.RunListener
Exception
public final void testFinished(org.junit.runner.Description description) throws Exception
testFinished
in class org.junit.runner.notification.RunListener
Exception
public final void testFailure(org.junit.runner.notification.Failure failure) throws Exception
testFailure
in class org.junit.runner.notification.RunListener
Exception
public final void testAssumptionFailure(org.junit.runner.notification.Failure failure)
testAssumptionFailure
in class org.junit.runner.notification.RunListener
public final void testIgnored(org.junit.runner.Description description) throws Exception
testIgnored
in class org.junit.runner.notification.RunListener
Exception
protected void after()
protected void before()
Copyright © 2011–2015 Carrot Search s.c.. All rights reserved.