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, testRunStartedpublic final void testStarted(Description description) throws Exception
testStarted in class RunListenerExceptionpublic final void testIgnored(Description description) throws Exception
testIgnored in class RunListenerExceptionpublic final void testFailure(Failure failure) throws Exception
testFailure in class RunListenerExceptionpublic final void testAssumptionFailure(Failure failure)
testAssumptionFailure in class RunListenerpublic final void testFinished(Description description) throws Exception
testFinished in class RunListenerExceptionpublic final T getInTestLinkListener()
AbstractInTestLinkRunListener.Copyright © 2012–2013 1&1. All rights reserved.