File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-cloud-bus/src/test/java/org/springframework/cloud/bus/jackson Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818
1919import com .fasterxml .jackson .annotation .JsonTypeName ;
2020import com .fasterxml .jackson .databind .ObjectMapper ;
21- import com .fasterxml .jackson .databind .PropertyNamingStrategy ;
21+ import com .fasterxml .jackson .databind .PropertyNamingStrategies ;
2222import org .junit .Test ;
2323
2424import org .springframework .cloud .bus .event .AckRemoteApplicationEvent ;
@@ -61,7 +61,7 @@ public void testDeserializeWhenTypeIsKnown() throws Exception {
6161 @ Test
6262 public void testDeserializeCustomizedObjectMapper () throws Exception {
6363 ObjectMapper mapper = new ObjectMapper ();
64- mapper .setPropertyNamingStrategy (PropertyNamingStrategy . SNAKE_CASE );
64+ mapper .setPropertyNamingStrategy (new PropertyNamingStrategies . SnakeCaseStrategy () );
6565
6666 BusJacksonMessageConverter converter = new BusJacksonMessageConverter (mapper );
6767 converter .afterPropertiesSet ();
You can’t perform that action at this time.
0 commit comments