FasterXML / jackson-datatype-joda

Extension module to properly support full datatype set of Joda datetime library
Apache License 2.0
140 stars 82 forks source link

Error in ObjectMapperConfig example in wiki #80

Closed mnuessler closed 8 years ago

mnuessler commented 8 years ago

There is an example in the wiki how you can configure the pre-defined object mappers by using a ObjectMapperConfig, but it is slightly broken. Should be:

RestAssured.config = RestAssuredConfig.config().objectMapperConfig(new ObjectMapperConfig().gsonObjectMapperFactory(
        new GsonObjectMapperFactory() {
            public Gson create(Class cls, String charset) {
                return new GsonBuilder().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();
            }
        }
));
cowtowncoder commented 8 years ago

I think you may have reported this in wrong issue tracker?