File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import com .fasterxml .jackson .databind .MapperFeature ;
17
17
import com .fasterxml .jackson .databind .ObjectMapper ;
18
+ import com .fasterxml .jackson .databind .json .JsonMapper ;
19
+
18
20
import org .junit .jupiter .api .Test ;
19
21
import org .junit .jupiter .api .condition .DisabledOnOs ;
20
22
import org .junit .jupiter .api .condition .OS ;
@@ -120,8 +122,7 @@ void builder() {
120
122
@ Test
121
123
void rawDeserialization () throws IOException {
122
124
// Given
123
- final ObjectMapper mapper = new ObjectMapper ();
124
- mapper .configure (MapperFeature .USE_ANNOTATIONS , false );
125
+ final ObjectMapper mapper = JsonMapper .builder ().configure (MapperFeature .USE_ANNOTATIONS , false ).build ();
125
126
// When
126
127
final JKubeConfiguration result = mapper .readValue (
127
128
JKubeConfigurationTest .class .getResourceAsStream ("/jkube-configuration.json" ),
You can’t perform that action at this time.
0 commit comments