Package net.serenitybdd.junit.runners
Class ParameterizedJUnitStepListener
java.lang.Object
org.junit.runner.notification.RunListener
net.thucydides.junit.listeners.JUnitStepListener
net.serenitybdd.junit.runners.ParameterizedJUnitStepListener
public class ParameterizedJUnitStepListener extends JUnitStepListener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Constructor Summary
Constructors Constructor Description ParameterizedJUnitStepListener(int parameterSetNumber, net.thucydides.core.model.DataTable parametersTable, java.lang.Class<?> testClass, BaseStepListener baseStepListener, StepListener... listeners)
-
Method Summary
Modifier and Type Method Description void
testFailure(org.junit.runner.notification.Failure failure)
void
testFinished(org.junit.runner.Description description)
void
testIgnored(org.junit.runner.Description description)
void
testRunStarted(org.junit.runner.Description description)
void
testStarted(org.junit.runner.Description description)
Called when a test starts.Methods inherited from class net.thucydides.junit.listeners.JUnitStepListener
dropListeners, getBaseStepListener, getError, getFailedTests, getTestClass, getTestOutcomes, hasRecordedFailures, registerThucydidesListeners, testRunFinished, withOutputDirectory
Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testSuiteFinished, testSuiteStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ParameterizedJUnitStepListener
public ParameterizedJUnitStepListener(int parameterSetNumber, net.thucydides.core.model.DataTable parametersTable, java.lang.Class<?> testClass, BaseStepListener baseStepListener, StepListener... listeners)
-
-
Method Details
-
testRunStarted
public void testRunStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testRunStarted
in classJUnitStepListener
- Throws:
java.lang.Exception
-
testStarted
public void testStarted(org.junit.runner.Description description)Description copied from class:JUnitStepListener
Called when a test starts. We also need to start the test suite the first time, as the testRunStarted() method is not invoked for some reason.- Overrides:
testStarted
in classJUnitStepListener
-
testFinished
public void testFinished(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testFinished
in classJUnitStepListener
- Throws:
java.lang.Exception
-
testFailure
public void testFailure(org.junit.runner.notification.Failure failure) throws java.lang.Exception- Overrides:
testFailure
in classJUnitStepListener
- Throws:
java.lang.Exception
-
testIgnored
public void testIgnored(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testIgnored
in classJUnitStepListener
- Throws:
java.lang.Exception
-