public class StringConverter
extends java.lang.Object
| Constructor and Description |
|---|
StringConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
convert(java.lang.String data,
boolean isVarArgs,
java.lang.Class<?>[] parameterTypes,
DataProvider dataProvider,
int rowIdx)
Converts the given
data to its corresponding arguments using the given parameterTypes and other
provided information. |
public java.lang.Object[] convert(java.lang.String data,
boolean isVarArgs,
java.lang.Class<?>[] parameterTypes,
DataProvider dataProvider,
int rowIdx)
data to its corresponding arguments using the given parameterTypes and other
provided information.data - regex-separated String of parameters for test methodisVarArgs - determines whether test method has a varargs parameterparameterTypes - target types of parameters to which corresponding values in regex-separated data
should be converteddataProvider - containing settings which should be used to convert given datarowIdx - index of current data (row) for better error messagesObject[] of supplied regex-separated datajava.lang.IllegalArgumentException - iif count of split data and parameter types does not match or argument cannot be
converted to required type