Package org.infinispan.commons.test
Class JUnitTestListener
java.lang.Object
org.junit.runner.notification.RunListener
org.infinispan.commons.test.JUnitTestListener
public class JUnitTestListener
extends org.junit.runner.notification.RunListener
Logs JUnit test progress.
To enable when running a test in the IDE, annotate the test class with
@RunWith(JUnitTestListener.Runner.class).
To enable in Maven, set the listener property in the surefire/failsafe plugin.
- Since:
- 9.0
- Author:
- Dan Berindei
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUse this runner to add the listener to your testNested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtestAssumptionFailure(org.junit.runner.notification.Failure failure) voidtestFailure(org.junit.runner.notification.Failure failure) voidtestFinished(org.junit.runner.Description description) voidtestIgnored(org.junit.runner.Description description) voidtestRunFinished(org.junit.runner.Result result) voidtestRunStarted(org.junit.runner.Description description) voidtestStarted(org.junit.runner.Description description) Methods inherited from class org.junit.runner.notification.RunListener
testSuiteFinished, testSuiteStarted
-
Constructor Details
-
JUnitTestListener
public JUnitTestListener()
-
-
Method Details
-
testStarted
- Overrides:
testStartedin classorg.junit.runner.notification.RunListener- Throws:
Exception
-
testFinished
- Overrides:
testFinishedin classorg.junit.runner.notification.RunListener- Throws:
Exception
-
testFailure
public void testFailure(org.junit.runner.notification.Failure failure) - Overrides:
testFailurein classorg.junit.runner.notification.RunListener
-
testIgnored
public void testIgnored(org.junit.runner.Description description) - Overrides:
testIgnoredin classorg.junit.runner.notification.RunListener
-
testAssumptionFailure
public void testAssumptionFailure(org.junit.runner.notification.Failure failure) - Overrides:
testAssumptionFailurein classorg.junit.runner.notification.RunListener
-
testRunStarted
public void testRunStarted(org.junit.runner.Description description) - Overrides:
testRunStartedin classorg.junit.runner.notification.RunListener
-
testRunFinished
public void testRunFinished(org.junit.runner.Result result) - Overrides:
testRunFinishedin classorg.junit.runner.notification.RunListener
-