File tree 2 files changed +1
-3
lines changed
parameter-names/src/test/java/com/fasterxml/jackson/module/paramnames
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
public class JsonCreatorTest
12
12
{
13
-
14
13
@ Test
15
14
public void shouldDeserializeClassWithJsonCreatorOnStaticMethod () throws Exception {
16
15
@@ -30,7 +29,7 @@ public void shouldDeserializeUsingDefaultPropertyCreatorSetting() throws IOExcep
30
29
// given
31
30
ObjectMapper objectMapper = new ObjectMapper ();
32
31
objectMapper .registerModule (new ParameterNamesModule ());
33
- objectMapper .configure (MapperFeature .SET_PROPERTY_CREATOR_AS_DEFAULT , true );
32
+ objectMapper .enable (MapperFeature .CREATOR_MODE_DEFAULT_PROPERTIES );
34
33
int givenValue = 1 ;
35
34
36
35
// when
Original file line number Diff line number Diff line change 45
45
<dependency >
46
46
<groupId >com.fasterxml.jackson.core</groupId >
47
47
<artifactId >jackson-databind</artifactId >
48
- <version >2.9.0-SNAPSHOT</version >
49
48
</dependency >
50
49
51
50
<dependency > <!-- all modules use junit for testing -->
You can’t perform that action at this time.
0 commit comments