public class StaticMethodTestDataProvider extends Object implements TestDataProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_METHOD_NAME
Default name for the test data objects method.
|
Constructor and Description |
---|
StaticMethodTestDataProvider()
Default constructor.
|
StaticMethodTestDataProvider(String methodName)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMethodName(FrameworkMethod testMethod)
Gets the method name for the test data provider.
|
Collection<?> |
getTestData(FrameworkMethod testMethod)
Gets the test data from the appropriate source.
|
void |
setMethodName(String methodName)
Sets the method name for the test data provider.
|
public static final String DEFAULT_METHOD_NAME
public StaticMethodTestDataProvider()
public StaticMethodTestDataProvider(String methodName)
methodName
- The method name for the test data provider.public String getMethodName(FrameworkMethod testMethod)
testMethod
- The JUnit framework method.public void setMethodName(String methodName)
methodName
- New method name for the test data provider.public Collection<?> getTestData(FrameworkMethod testMethod) throws InvalidParametricTestException
TestDataProvider
getTestData
in interface TestDataProvider
testMethod
- The JUnit framework method.InvalidParametricTestException
- If the test data provider cannot be created.org.dejava.component.test.runner.dataset.TestDataProvider#getTestData(org.junit.runners.model.FrameworkMethod)
Copyright © 2012. All Rights Reserved.