Skip to content

Commit

Permalink
Do not use deprecated class
Browse files Browse the repository at this point in the history
  • Loading branch information
fedinskiy committed Nov 21, 2024
1 parent a0eacb2 commit 3ec861a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.apache.commons.lang3.StringUtils;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.KafkaContainer;
import org.testcontainers.kafka.ConfluentKafkaContainer;
import org.testcontainers.utility.DockerImageName;

import io.quarkus.test.utils.DockerUtils;
Expand All @@ -20,7 +21,7 @@ public String getDisplayName() {

@Override
protected GenericContainer<?> initKafkaContainer() {
return new KafkaContainer(DockerImageName.parse(getKafkaImage() + ":" + getKafkaVersion()))
return new ConfluentKafkaContainer(DockerImageName.parse(getKafkaImage() + ":" + getKafkaVersion()))
.withCreateContainerCmdModifier(cmd -> cmd.withName(DockerUtils.generateDockerContainerName()));
}

Expand Down

0 comments on commit 3ec861a

Please sign in to comment.