@Test public void simple_object_mapper_only_supports_some_class_types() { final Executable testMethod = () -> objectMapper.transform("something", Date.class); final IllegalArgumentException thrownException = assertThrows(IllegalArgumentException.class, testMethod); assertThat("Unexpected message", thrownException.getMessage(), is(equalTo( "Can't transform 'something' to class java.util.Date\n" + "BuiltInParameterTransformer only supports a limited number of class types\n" + "Consider using a different object mapper or register a parameter type for class java.util.Date" ))); }
@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);  }