DATAREST-931 - Polishing.

Switched to non-deprecated property naming strategy in test case.
This commit is contained in:
Oliver Gierke
2016-11-01 13:41:00 +01:00
parent 50d2678d01
commit 68d0a1aa6a
2 changed files with 2 additions and 2 deletions

View File

@@ -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());
}

View File

@@ -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\"}");