org.eclipse.emf.emfstore.fuzzy.emf.junit
Class ESFuzzyRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
org.eclipse.emf.emfstore.fuzzy.emf.junit.ESFuzzyRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class ESFuzzyRunner
- extends org.junit.runners.Suite
A Runner
for JUnit, to realize multiple runs with different values
for a data field.
Activate with the RunWith
annotation: @RunWith(ESFuzzyRunner.class)
.
The test class must have a field, which is not static and annotated with Annotations.Data
, e.g.
@Data
private Integer i;
To provide data an implementation of ESFuzzyDataProvider
can be set via
the Annotations.DataProvider
annotation, e.g.
@DataProvider(IntDataProvider.class)
This class must implement the interface ESFuzzyDataProvider
. The
default value is the example implementation: IntDataProvider.
The MyTest class illustrates an example usage of the ESFuzzyRunner
.
- Since:
- 2.0
- Author:
- Julian Sommerfeldt
Nested classes/interfaces inherited from class org.junit.runners.Suite |
org.junit.runners.Suite.SuiteClasses |
Method Summary |
void |
run(org.junit.runner.notification.RunNotifier notifier)
|
Methods inherited from class org.junit.runners.Suite |
emptySuite |
Methods inherited from class org.junit.runners.ParentRunner |
filter, getDescription, getTestClass, setScheduler, sort |
Methods inherited from class org.junit.runner.Runner |
testCount |
NAME_SEPARATOR
public static final String NAME_SEPARATOR
- The string representing a separation in a name (e.g. test name).
- See Also:
- Constant Field Values
ESFuzzyRunner
public ESFuzzyRunner(Class<?> clazz)
throws org.junit.runners.model.InitializationError
- Default constructor, called by JUnit.
- Parameters:
clazz
- The root class of the suite.
- Throws:
org.junit.runners.model.InitializationError
- If there
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Overrides:
run
in class org.junit.runners.ParentRunner<org.junit.runner.Runner>
Copyright © 2015. All Rights Reserved.