public class XMLTestDataProvider extends Object implements TestDataProvider
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XML_PATH
Default path for the XML.
|
Constructor and Description |
---|
XMLTestDataProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getFilePath(FrameworkMethod testMethod)
Gets the XML file path (relative to the test class).
|
Collection<?> |
getTestData(FrameworkMethod testMethod)
Gets the test data from the appropriate source.
|
void |
setFilePath(String filePath)
Sets the XML file path (relative to the test class).
|
public static final String DEFAULT_XML_PATH
public String getFilePath(FrameworkMethod testMethod)
testMethod
- The JUnit framework method.public void setFilePath(String filePath)
filePath
- New XML file path (relative to the test class).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.