use of org.apache.commons.lang3.reflect.TypeLiteral in project jbehave-core by jbehave.
the class ParameterConvertersBehaviour method shouldFailToConvertCommaSeparatedValuesOfInvalidNumbers.
@Test
public void shouldFailToConvertCommaSeparatedValuesOfInvalidNumbers() {
expectedException.expect(ParameterConvertionFailed.class);
new NumberListConverter().convertValue("3x, x.5", new TypeLiteral<List<Number>>() {
}.getType());
}
Aggregations