public class TestGenerator
extends java.lang.Object
Constructor and Description |
---|
TestGenerator(DataConverter dataConverter) |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.junit.runners.model.FrameworkMethod> |
generateExplodedTestMethodsFor(org.junit.runners.model.FrameworkMethod testMethod,
org.junit.runners.model.FrameworkMethod dataProviderMethod)
Generates the exploded list of test methods for the given
testMethod . |
public TestGenerator(DataConverter dataConverter)
public java.util.List<org.junit.runners.model.FrameworkMethod> generateExplodedTestMethodsFor(org.junit.runners.model.FrameworkMethod testMethod, org.junit.runners.model.FrameworkMethod dataProviderMethod)
testMethod
. The given FrameworkMethod
is checked if it uses the given dataprovider method, an @
DataProvider
, or nothing. If it uses any
dataprovider, for each line of the DataProvider
s result a specific, parameterized test method will be
added. If not, the original test method is added. If the given test method is null
, an empty list is
returned.testMethod
- the original test methoddataProviderMethod
- the corresponding dataprovider method or null
null
)java.lang.Error
- if something went wrong while exploding test methods