Skip to content

Commit

Permalink
refactor:JKubeConfigurationTest uses deprecated ObjectMapper.configur…
Browse files Browse the repository at this point in the history
…e method
  • Loading branch information
sankritimishra authored and manusa committed Jan 12, 2024
1 parent 61dcadc commit 98a8b6c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit 98a8b6c

Please sign in to comment.