T
- type of the listener to be called when a TestLink
annotation exists.public abstract class AbstractTestLinkRunListener<T extends AbstractInTestLinkRunListener> extends RunListener
TestLink
annotations.
Overriding of behaviour must be accomplished by injecting a specific AbstractInTestLinkRunListener
as
all methods defined here are final. Note that RunListener.testRunStarted(org.junit.runner.Description)
and RunListener.testRunFinished(org.junit.runner.Result)
are not final as these probably
must be extended for flushing and closing a stream etc.Constructor and Description |
---|
AbstractTestLinkRunListener(T testLinkRunListener)
Injects the listener for the actual report.
|
Modifier and Type | Method and Description |
---|---|
T |
getInTestLinkListener() |
void |
testAssumptionFailure(Failure failure) |
void |
testFailure(Failure failure) |
void |
testFinished(Description description) |
void |
testIgnored(Description description) |
void |
testStarted(Description description) |
testRunFinished, testRunStarted
public final void testStarted(Description description) throws Exception
testStarted
in class RunListener
Exception
public final void testIgnored(Description description) throws Exception
testIgnored
in class RunListener
Exception
public final void testFailure(Failure failure) throws Exception
testFailure
in class RunListener
Exception
public final void testAssumptionFailure(Failure failure)
testAssumptionFailure
in class RunListener
public final void testFinished(Description description) throws Exception
testFinished
in class RunListener
Exception
public final T getInTestLinkListener()
AbstractInTestLinkRunListener
.Copyright © 2012–2013 1&1. All rights reserved.