public abstract class AbstractTypeConverter<T> extends Object implements junitparams.converters.ParamConverter<T>
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
targetClass |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTypeConverter(Class<T> targetClass) |
| Modifier and Type | Method and Description |
|---|---|
T |
convert(Object obj,
String option) |
protected T |
fromOtherType(Object obj,
String option) |
protected abstract T |
fromString(String objText,
String option) |
protected T |
nullValue(String option) |
public T convert(Object obj, String option) throws junitparams.converters.ConversionFailedException
convert in interface junitparams.converters.ParamConverter<T>junitparams.converters.ConversionFailedExceptionprotected abstract T fromString(String objText, String option) throws junitparams.converters.ConversionFailedException
junitparams.converters.ConversionFailedExceptionprotected T nullValue(String option) throws junitparams.converters.ConversionFailedException
junitparams.converters.ConversionFailedExceptionCopyright © 2015–2016 Boleslav Bobcik - Auderis. All rights reserved.