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:
committed by
Oliver Gierke
parent
31c894e880
commit
0a6dcc9825
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user