@Test public void simple_object_mapper_only_supports_class_types() { Type abstractListOfE = ArrayList.class.getGenericSuperclass(); final Executable testMethod = () -> objectMapper.transform("something", abstractListOfE); String expected = "" + "Can't transform 'something' to java.util.AbstractList<E>\n" + "BuiltInParameterTransformer only supports a limited number of class types\n" + "Consider using a different object mapper or register a parameter type for java.util.AbstractList<E>"; final IllegalArgumentException thrownException = assertThrows(IllegalArgumentException.class, testMethod); assertThat("Unexpected message", thrownException.getMessage(), is(equalTo(expected))); }
@Override public Object transform(String fromValue, Type toValueType) { return doTransform(fromValue, toValueType, toValueType); }
BuiltInParameterTransformer implements ParameterByTypeTransformer { @Override public Object transform(String fromValue, Type toValueType) { return doTransform(fromValue, toValueType, toValueType); } }
BuiltInParameterTransformer implements ParameterByTypeTransformer { @Override public Object transform(String fromValue, Type toValueType) { return doTransform(fromValue, toValueType, toValueType); } BuiltInParameterTransformer(Locale locale); }
BuiltInParameterTransformer implements ParameterByTypeTransformer { @Override public Object transform(String fromValue, Type toValueType) { return doTransform(fromValue, toValueType, toValueType); } BuiltInParameterTransformer(Locale locale); @Override Object transform(String fromValue, Type toValueType); }
BuiltInParameterTransformer implements ParameterByTypeTransformer { @Override public Object transform(String fromValue, Type toValueType) { return doTransform(fromValue, toValueType, toValueType); } BuiltInParameterTransformer(Locale locale); @Override Object transform(String fromValue, Type toValueType);  }