use of org.simpleflatmapper.converter.ConverterService in project SimpleFlatMapper by arnaudroger.
the class ConverterServiceTest method testListToNumberSOE.
@Test
public void testListToNumberSOE() {
ConverterService converterService = ConverterService.getInstance();
Converter<? super List, ? extends Integer> converter = converterService.findConverter(List.class, Integer.class);
assertTrue(converter instanceof ComposedConverter);
ComposedConverter composedConverter = (ComposedConverter) converter;
assertTrue(composedConverter.c1 instanceof ToStringConverter);
assertTrue(composedConverter.c2 instanceof CharSequenceIntegerConverter);
}
Aggregations