@Test public void testNsesss2WrappedInternalDocument() throws Exception { ObjectMapper om = new JacksonProvider().getContext(DesObjectWrapper.class); om.configure(DeserializationFeature.UNWRAP_ROOT_VALUE, true); Dokument nsesss = NsesssUtils.defaultInternalDokument(); String toJson = om.writeValueAsString(new DesObjectWrapper(DesMetadataHandler.mapToJson(nsesss))); DesObjectWrapper result = om.readValue(toJson, DesObjectWrapper.class); assertNotNull(result); assertNotNull(result.getDokument()); }
@Override public ObjectMapper getContext(Class<?> type) { return mapper; }
JacksonProvider implements ContextResolver<ObjectMapper> { @Override public ObjectMapper getContext(Class<?> type) { return mapper; } }
JacksonProvider implements ContextResolver<ObjectMapper> { @Override public ObjectMapper getContext(Class<?> type) { return mapper; } JacksonProvider(); }
JacksonProvider implements ContextResolver<ObjectMapper> { @Override public ObjectMapper getContext(Class<?> type) { return mapper; } JacksonProvider(); @Override ObjectMapper getContext(Class<?> type); }
JacksonProvider implements ContextResolver<ObjectMapper> { @Override public ObjectMapper getContext(Class<?> type) { return mapper; } JacksonProvider(); @Override ObjectMapper getContext(Class<?> type);  }