Skip to content

Commit

Permalink
#285 wontfix
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed May 8, 2023
1 parent 469d3df commit 797bdf5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 180 deletions.
17 changes: 2 additions & 15 deletions src/it/producer-consumer-api/src/test/java/EntryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

import io.github.eocqrs.kafka.Consumer;
import io.github.eocqrs.kafka.Producer;
import io.github.eocqrs.kafka.admin.CreateTopics;
import io.github.eocqrs.kafka.consumer.KfConsumer;
import io.github.eocqrs.kafka.consumer.settings.KfConsumerParams;
import io.github.eocqrs.kafka.data.KfData;
Expand All @@ -41,9 +40,6 @@
import io.github.eocqrs.kafka.producer.KfCallback;
import io.github.eocqrs.kafka.producer.KfProducer;
import io.github.eocqrs.kafka.producer.settings.KfProducerParams;
import org.apache.kafka.clients.admin.AdminClient;
import org.apache.kafka.clients.admin.AdminClientConfig;
import org.apache.kafka.clients.admin.NewTopic;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.common.serialization.StringDeserializer;
Expand All @@ -61,7 +57,6 @@
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.KafkaContainer;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.shaded.com.google.common.collect.ImmutableMap;
import org.testcontainers.utility.DockerImageName;

import java.io.IOException;
Expand Down Expand Up @@ -185,15 +180,7 @@ void createsProducerAndSendsData() throws IOException {

@Test
@Order(5)
void createsProducerAndSendsMessage() throws Exception {
final AdminClient admin = AdminClient.create(
ImmutableMap.of(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, EntryTest.servers)
);
new CreateTopics(
admin,
new NewTopic("TEST-TOPIC", 1, (short) 1)
).value()
.get(30L, TimeUnit.SECONDS);
void createsProducerAndSendsMessage() {
final Producer<String, String> producer = new KfProducer<>(
new KfFlexible<>(
new KfProducerParams(
Expand All @@ -220,7 +207,7 @@ void createsProducerAndSendsMessage() throws Exception {
)
)
);
producer.send("testcontainers", new KfData<>("rulezzz", "TEST-TOPIC", 0));
producer.send("testcontainers", new KfData<>("rulezzzd", "TEST-TOPIC", 0));
Unreliables.retryUntilTrue(
10,
TimeUnit.SECONDS,
Expand Down
68 changes: 0 additions & 68 deletions src/main/java/io/github/eocqrs/kafka/admin/CreateTopics.java

This file was deleted.

68 changes: 0 additions & 68 deletions src/main/java/io/github/eocqrs/kafka/admin/ListTopics.java

This file was deleted.

29 changes: 0 additions & 29 deletions src/main/java/io/github/eocqrs/kafka/admin/package-info.java

This file was deleted.

0 comments on commit 797bdf5

Please sign in to comment.