public class JNDITestDataProvider extends Object implements TestDataProvider
Constructor and Description |
---|
JNDITestDataProvider(String objectPath,
String methodName)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMethodName()
Gets the method name for the test data provider.
|
String |
getObjectPath()
Gets the JNDI path for the object from which the test data provider method will be invoked.
|
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.
|
void |
setObjectPath(String objectPath)
Sets the JNDI path for the object from which the test data provider method will be invoked.
|
public String getObjectPath()
public void setObjectPath(String objectPath)
objectPath
- New JNDI path for the object from which the test data provider method will be invoked.public String getMethodName()
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.