Skip to content

Instantly share code, notes, and snippets.

@evonsdesigns
Created March 12, 2019 18:05
Show Gist options
  • Save evonsdesigns/10e7e53b1ce561e64253baa5bf68a15f to your computer and use it in GitHub Desktop.
Save evonsdesigns/10e7e53b1ce561e64253baa5bf68a15f to your computer and use it in GitHub Desktop.
@Test
public void testPojoMapper() {
PojoMapper pojoMapper = new PojoMapper();
ObjectMapper objectMapper = pojoMapper.getMapper();
assertTrue(
objectMapper.getDeserializationConfig().isEnabled(
MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES
)
);
assertTrue(
objectMapper.getDeserializationConfig().isEnabled(
JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES,
objectMapper.getFactory()
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment