Class StringTestDataSource
java.lang.Object
net.thucydides.core.steps.stepdata.StringTestDataSource
- All Implemented Interfaces:
TestDataSource
Test data from a set of Strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> boolean
assignPropertyValue
(T newObject, String property, String value) protected <T> T
createNewInstanceOf
(Class<T> clazz, Object... constructorArgs) getData()
<T> List<T>
getDataAsInstancesOf
(Class<T> clazz, Object... constructorArgs) Returns the test data as a list of JavaBean instances.<T> List<T>
getInstanciatedInstancesFrom
(Class<T> clazz, StepFactory factory) getRows()
loadTestDataFrom
(List<List<String>> rows) separatedBy
(char newSeparator)
-
Constructor Details
-
StringTestDataSource
-
-
Method Details
-
getData
- Specified by:
getData
in interfaceTestDataSource
-
getRows
-
getRowsOfObjects
-
getHeaders
- Specified by:
getHeaders
in interfaceTestDataSource
-
loadTestDataFrom
-
getDataAsInstancesOf
Returns the test data as a list of JavaBean instances.- Specified by:
getDataAsInstancesOf
in interfaceTestDataSource
-
getInstanciatedInstancesFrom
- Specified by:
getInstanciatedInstancesFrom
in interfaceTestDataSource
-
separatedBy
- Specified by:
separatedBy
in interfaceTestDataSource
-
createNewInstanceOf
-
assignPropertyValue
-