File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
jackson/src/test/java/org/baeldung/jackson Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void setIntValue(final int intValue) {
22
22
this .intValue = intValue ;
23
23
}
24
24
25
- public int anotherGetIntValue () {
25
+ public int alternativeGetIntValue () {
26
26
return intValue ;
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public final void givenDifferentAccessLevels_whenSetterAdded_thenDeserializable(
65
65
final MyDtoSetter dtoObject = mapper .readValue (jsonAsString , MyDtoSetter .class );
66
66
67
67
assertNotNull (dtoObject );
68
- assertThat (dtoObject .anotherGetIntValue (), equalTo (1 ));
68
+ assertThat (dtoObject .alternativeGetIntValue (), equalTo (1 ));
69
69
}
70
70
71
71
@ Test
@@ -82,7 +82,6 @@ public final void givenDifferentAccessLevels_whenSetterAdded_thenStillNotSeriali
82
82
@ Test
83
83
public final void givenDifferentAccessLevels_whenSetVisibility_thenSerializable () throws IOException {
84
84
final ObjectMapper mapper = new ObjectMapper ();
85
- mapper .setVisibility (PropertyAccessor .ALL , Visibility .NONE );
86
85
mapper .setVisibility (PropertyAccessor .FIELD , Visibility .ANY );
87
86
88
87
final MyDtoAccessLevel dtoObject = new MyDtoAccessLevel ();
You can’t perform that action at this time.
0 commit comments