Skip to content

Commit 79a5631

Browse files
committed
updated
1 parent 24c6bd1 commit 79a5631

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jkube-kit/common/src/test/java/org/eclipse/jkube/kit/common/JKubeConfigurationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
import com.fasterxml.jackson.databind.MapperFeature;
1717
import com.fasterxml.jackson.databind.ObjectMapper;
18+
import com.fasterxml.jackson.databind.json.JsonMapper;
19+
1820
import org.junit.jupiter.api.Test;
1921
import org.junit.jupiter.api.condition.DisabledOnOs;
2022
import org.junit.jupiter.api.condition.OS;
@@ -120,8 +122,7 @@ void builder() {
120122
@Test
121123
void rawDeserialization() throws IOException {
122124
// 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();
125126
// When
126127
final JKubeConfiguration result = mapper.readValue(
127128
JKubeConfigurationTest.class.getResourceAsStream("/jkube-configuration.json"),

0 commit comments

Comments
 (0)