DATAREST-931 - Polishing.
Switched to non-deprecated property naming strategy in test case.
This commit is contained in:
@@ -85,8 +85,8 @@ class JsonPatchHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
<T> T applyPatch(InputStream source, T target) throws Exception {
|
||||
|
||||
return getPatchOperations(source).apply(target, (Class<T>) target.getClass());
|
||||
}
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ public class DomainObjectReaderUnitTests {
|
||||
public void considersMappedFieldNamesWhenApplyingNodeToDomainObject() throws Exception {
|
||||
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.PASCAL_CASE_TO_CAMEL_CASE);
|
||||
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE);
|
||||
|
||||
JsonNode node = new ObjectMapper().readTree("{\"FirstName\":\"Carter\",\"LastName\":\"Beauford\"}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user