diff --git a/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java b/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java index c84516fb2..64ddbcdc2 100644 --- a/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java +++ b/boot-opensearch-sample/src/test/java/com/example/opensearch/common/ContainersConfig.java @@ -9,8 +9,8 @@ public class ContainersConfig { @Container - public static OpensearchContainer openSearchContainer = - new OpensearchContainer(DockerImageName.parse("opensearchproject/opensearch:2.11.0")); + public static OpensearchContainer openSearchContainer = + new OpensearchContainer<>(DockerImageName.parse("opensearchproject/opensearch:2.11.0")); static { openSearchContainer.start();