Skip to content

Commit

Permalink
TIKA-4326: adjust test container type and update container version
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Jan 15, 2025
1 parent 8e3eb47 commit 7a784b3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.junit.jupiter.Testcontainers;
import org.testcontainers.kafka.KafkaContainer;
import org.testcontainers.kafka.ConfluentKafkaContainer;
import org.testcontainers.shaded.org.apache.commons.io.FileUtils;
import org.testcontainers.utility.DockerImageName;

Expand Down Expand Up @@ -93,7 +93,8 @@ public static void setUp() {
private final File testFileFolder = new File("target", "test-files");

private final Set<String> waitingFor = new HashSet<>();
KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:6.2.1").asCompatibleSubstituteFor("apache/kafka"));
// https://java.testcontainers.org/modules/kafka/#using-orgtestcontainerskafkaconfluentkafkacontainer
ConfluentKafkaContainer kafka = new ConfluentKafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.4.0"));

private void createTestFiles() throws Exception {
if (testFileFolder.mkdirs()) {
Expand Down

0 comments on commit 7a784b3

Please sign in to comment.