public class ExtRunListener extends RunListener
RunListener, version junit 4.12.
adds methods
testSuiteStarted(Description) and
testSuiteFinished(Description)
which is added to RunListener, version junit 4.13
which is not yet available.
testRunAborted() and testClassStructureLoaded(Description)
needed in conjunction with our user interfaces.
RunListener.ThreadSafe| Constructor and Description |
|---|
ExtRunListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
testClassStructureLoaded(Description desc)
Invoked if a test class is loaded defining a testsuite
described by
desc. |
void |
testRunAborted()
Invoked for stop and for break originated by the user.
|
void |
testSuiteFinished(Description desc)
Called when a test suite has finished,
whether the test suite succeeds or fails.
|
void |
testSuiteStarted(Description desc)
Called when a test suite is about to be started.
|
testAssumptionFailure, testFailure, testFinished, testIgnored, testRunFinished, testRunStarted, testStartedpublic void testSuiteStarted(Description desc) throws Exception
Description,
then testSuiteFinished(Description)
will also be called for the same Description.
Note that not all runners will call this method, so runners should
be prepared to handle RunListener.testStarted(Description) calls for tests
where there was no corresponding testSuiteStarted(Description)
call for the parent Description.
desc - the description of the test suite that is about to be run
(generally a class name)Exceptionpublic void testSuiteFinished(Description desc) throws Exception
Description
unless testSuiteStarted(Description) was called
for the same Description.desc - the description of the test suite that just ranExceptionpublic void testRunAborted()
public void testClassStructureLoaded(Description desc)
desc.Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.