use of com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver in project jackson-databind by FasterXML.
the class ConfigObjectsTest method testSubtypeResolver.
public void testSubtypeResolver() throws Exception {
ObjectMapper mapper = new ObjectMapper();
SubtypeResolver res = mapper.getSubtypeResolver();
assertTrue(res instanceof StdSubtypeResolver);
StdSubtypeResolver repl = new StdSubtypeResolver();
repl.registerSubtypes(Sub.class);
mapper.setSubtypeResolver(repl);
assertSame(repl, mapper.getSubtypeResolver());
}
Aggregations