DATAREST-887 - JsonPatchPatchHandler now uses external ObjectMapper.

The previously static ObjectMapper used by JsonPatchPatchHandler now has to be provided by clients instantiating the handler.

Original pull request: #224.
This commit is contained in:
Mathias Düsterhöft
2016-09-06 15:37:43 +02:00
committed by Oliver Gierke
parent 31c894e880
commit 0a6dcc9825
4 changed files with 10 additions and 5 deletions

View File

@@ -113,7 +113,7 @@ public class JsonPatchTest {
ClassPathResource resource = new ClassPathResource(jsonPatchFile, getClass());
ObjectMapper mapper = new ObjectMapper();
JsonNode node = mapper.readValue(resource.getInputStream(), JsonNode.class);
Patch patch = new JsonPatchPatchConverter().convert(node);
Patch patch = new JsonPatchPatchConverter(mapper).convert(node);
return patch;
}