org.eclipse.emf.emfstore.fuzzy.emf.junit
Class ESFuzzyRunner

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<org.junit.runner.Runner>
          extended by org.junit.runners.Suite
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.junit.runners.Suite
org.junit.runners.Suite.SuiteClasses
 
Field Summary
static String NAME_SEPARATOR
          The string representing a separation in a name (e.g.
 
Constructor Summary
ESFuzzyRunner(Class<?> clazz)
          Default constructor, called by JUnit.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.