diff --git a/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/BuildConfigurationTest.java b/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/BuildConfigurationTest.java index 2b6082472d..7f9d7d8d14 100644 --- a/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/BuildConfigurationTest.java +++ b/jkube-kit/config/image/src/test/java/org/eclipse/jkube/kit/config/image/build/BuildConfigurationTest.java @@ -19,6 +19,7 @@ import java.util.Collections; import java.util.stream.Stream; +import com.fasterxml.jackson.databind.json.JsonMapper; import org.assertj.core.api.Assertions; import org.eclipse.jkube.kit.common.AssemblyConfiguration; @@ -234,8 +235,7 @@ void getAssembly_withAssembly_shouldReturnAssembly() { @Test void rawDeserialization() throws IOException { // Given - final ObjectMapper mapper = new ObjectMapper(); - mapper.configure(MapperFeature.USE_ANNOTATIONS, false); + final ObjectMapper mapper = JsonMapper.builder().configure(MapperFeature.USE_ANNOTATIONS, false).build(); // When final BuildConfiguration result = mapper.readValue( BuildConfigurationTest.class.getResourceAsStream("/build-configuration.json"),