public class ParametricTestNotifier extends Object
Constructor and Description |
---|
ParametricTestNotifier(RunNotifier notifier,
Description description)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFailedAssumption(Throwable testFailedAssumption)
Adds aa failed assumption to a test.
|
void |
addFailedAssumptions(Collection<AtomParametricTestAssertionError> testFailedAssumptions)
Adds any number of failed assumptions to a test.
|
void |
addFailure(Throwable testException)
Add a failure to a test.
|
void |
addFailures(Collection<? extends Throwable> testExceptions)
Adds any number of failures to a test.
|
void |
fireTestFinished() |
void |
fireTestIgnored() |
void |
fireTestStarted() |
Description |
getDescription()
Gets the test description.
|
RunNotifier |
getNotifier()
Gets the test run notifier.
|
void |
setDescription(Description description)
Sets the test description.
|
void |
setNotifier(RunNotifier notifier)
Sets the test run notifier.
|
public ParametricTestNotifier(RunNotifier notifier, Description description)
notifier
- Test run notifier.description
- Test description.public RunNotifier getNotifier()
public void setNotifier(RunNotifier notifier)
notifier
- New test run notifier.public Description getDescription()
public void setDescription(Description description)
description
- New test description.public void addFailure(Throwable testException)
testException
- The exception thrown during the test run.public void addFailures(Collection<? extends Throwable> testExceptions)
testExceptions
- The exceptions thrown during the test run.public void addFailedAssumption(Throwable testFailedAssumption)
testFailedAssumption
- The failed assumption that occurred during the test run.public void addFailedAssumptions(Collection<AtomParametricTestAssertionError> testFailedAssumptions)
testFailedAssumptions
- The failed assumptions that occurred during the test run.public void fireTestFinished()
RunNotifier#fireTestFinished(Description)
public void fireTestStarted()
RunNotifier#fireTestStarted(Description)
public void fireTestIgnored()
RunNotifier#fireTestIgnored(Description)
Copyright © 2012. All Rights Reserved.