Skip to content

Commit 2807e76

Browse files
committed
Adopt to changed PropertyNamingStrategies constants in Jackson 2.20.
Closes #2504
1 parent 3dc325c commit 2807e76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import org.mockito.ArgumentMatchers;
3131
import org.mockito.Mock;
3232
import org.mockito.junit.jupiter.MockitoExtension;
33+
3334
import org.springframework.data.annotation.CreatedDate;
3435
import org.springframework.data.annotation.Id;
3536
import org.springframework.data.annotation.Immutable;
@@ -60,7 +61,7 @@
6061
import com.fasterxml.jackson.databind.JsonMappingException;
6162
import com.fasterxml.jackson.databind.JsonNode;
6263
import com.fasterxml.jackson.databind.ObjectMapper;
63-
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
64+
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
6465
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
6566
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
6667
import com.fasterxml.jackson.databind.module.SimpleModule;
@@ -132,7 +133,7 @@ void doesNotConsiderIgnoredProperties() throws Exception {
132133
void considersMappedFieldNamesWhenApplyingNodeToDomainObject() throws Exception {
133134

134135
ObjectMapper mapper = new ObjectMapper();
135-
mapper.setPropertyNamingStrategy(PropertyNamingStrategy.UPPER_CAMEL_CASE);
136+
mapper.setPropertyNamingStrategy(PropertyNamingStrategies.UPPER_CAMEL_CASE);
136137

137138
JsonNode node = new ObjectMapper().readTree("{\"FirstName\":\"Carter\",\"LastName\":\"Beauford\"}");
138139

0 commit comments

Comments
 (0)