Class ListGenerator<T>
- java.lang.Object
-
- io.wcm.testing.junit.rules.parameterized.ListGenerator<T>
-
-
Constructor Summary
Constructors Constructor Description ListGenerator(java.util.List<T> values)
ListGenerator(java.util.List<T> values, Callback<T> setUpCallback, Callback<T> tearDownCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statement
apply(org.junit.runners.model.Statement test, org.junit.runner.Description description)
T
value()
-
-
-
Constructor Detail
-
ListGenerator
public ListGenerator(java.util.List<T> values)
- Parameters:
values
- Parameter values
-
ListGenerator
public ListGenerator(java.util.List<T> values, Callback<T> setUpCallback, Callback<T> tearDownCallback)
- Parameters:
values
- Parameter valuessetUpCallback
- Callback method that is called for each value iteration before test method is executed.tearDownCallback
- Callback method that is called for each value iteration after test method was executed.
-
-
Method Detail
-
value
public T value()
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement test, org.junit.runner.Description description)
- Specified by:
apply
in interfaceorg.junit.rules.TestRule
-
-