public interface ValueConverter
Spockito.Unroll table data defined in string form is assigned to test class fields or
parameters of a test method.| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(Class<T> type,
Type genericType,
String value)
Converts the given string value into the target type specified by raw and generic type.
|
<T> T convert(Class<T> type, Type genericType, String value)
T - the target type parametertype - the target type in raw form, for instance int.class, List.class etc.genericType - the generic target type, same as type for non-generic types; generic type examples are
List<String>, Map<String, Integer> etc.value - the value to convert, may be null