Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Jan 18, 2022
1 parent 6454fa5 commit 201e779
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import static io.trino.tests.product.launcher.env.EnvironmentContainers.TESTS;
import static java.lang.Integer.parseInt;
import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
import static org.testcontainers.containers.wait.strategy.Wait.forHealthcheck;
import static org.testcontainers.containers.wait.strategy.Wait.forLogMessage;
Expand Down Expand Up @@ -121,14 +122,14 @@ public Optional<String> getExtraOptionsPrefix()
return Optional.of("compatibility.");
}

public static class Config
private static class Config
{
private static final String TEST_DOCKER_IMAGE = "testDockerImage";
private final String compatibilityTestDockerImage;

public Config(Map<String, String> extraOptions)
{
this.compatibilityTestDockerImage = requireNonNull(extraOptions.get(TEST_DOCKER_IMAGE), "Required extra option " + TEST_DOCKER_IMAGE + " is null");
this.compatibilityTestDockerImage = requireNonNull(extraOptions.get(TEST_DOCKER_IMAGE), () -> format("Required extra option %s is null", TEST_DOCKER_IMAGE));
}

public String getCompatibilityTestDockerImage()
Expand Down

0 comments on commit 201e779

Please sign in to comment.