Skip to content

Commit 9ce1118

Browse files
committed
Use YamlMapper instead of ObjectMapper
1 parent 96fa666 commit 9ce1118

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

testing/trino-product-tests-launcher/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@
2323
<artifactId>jackson-annotations</artifactId>
2424
</dependency>
2525

26-
<dependency>
27-
<groupId>com.fasterxml.jackson.core</groupId>
28-
<artifactId>jackson-core</artifactId>
29-
</dependency>
30-
31-
<dependency>
32-
<groupId>com.fasterxml.jackson.core</groupId>
33-
<artifactId>jackson-databind</artifactId>
34-
</dependency>
35-
3626
<dependency>
3727
<groupId>com.fasterxml.jackson.dataformat</groupId>
3828
<artifactId>jackson-dataformat-yaml</artifactId>

testing/trino-product-tests-launcher/src/main/java/io/trino/tests/product/launcher/env/Environment.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
package io.trino.tests.product.launcher.env;
1515

1616
import com.fasterxml.jackson.annotation.JsonProperty;
17-
import com.fasterxml.jackson.databind.ObjectMapper;
18-
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
17+
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
1918
import com.github.dockerjava.api.command.CreateContainerCmd;
2019
import com.github.dockerjava.api.command.InspectContainerResponse;
2120
import com.github.dockerjava.api.model.Bind;
@@ -692,11 +691,11 @@ private void addConfiguredFeaturesConfig()
692691
DockerContainer testContainer = containers.get(TESTS);
693692
// write a custom tempto config with list of connectors the environment declares to have configured
694693
// since it's needed in TestConfiguredFeatures
695-
ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory());
694+
YAMLMapper yamlMapper = new YAMLMapper();
696695
File tempFile;
697696
try {
698697
tempFile = File.createTempFile("tempto-configured-features-", ".yaml");
699-
objectMapper.writeValue(tempFile,
698+
yamlMapper.writeValue(tempFile,
700699
Map.of("databases",
701700
Map.of("trino",
702701
Map.of(

0 commit comments

Comments
 (0)