2424
2525import io .github .eocqrs .kafka .Consumer ;
2626import io .github .eocqrs .kafka .Producer ;
27- import io .github .eocqrs .kafka .admin .CreateTopics ;
2827import io .github .eocqrs .kafka .consumer .KfConsumer ;
2928import io .github .eocqrs .kafka .consumer .settings .KfConsumerParams ;
3029import io .github .eocqrs .kafka .data .KfData ;
4140import io .github .eocqrs .kafka .producer .KfCallback ;
4241import io .github .eocqrs .kafka .producer .KfProducer ;
4342import io .github .eocqrs .kafka .producer .settings .KfProducerParams ;
44- import org .apache .kafka .clients .admin .AdminClient ;
45- import org .apache .kafka .clients .admin .AdminClientConfig ;
46- import org .apache .kafka .clients .admin .NewTopic ;
4743import org .apache .kafka .clients .consumer .ConsumerRecord ;
4844import org .apache .kafka .clients .consumer .ConsumerRecords ;
4945import org .apache .kafka .common .serialization .StringDeserializer ;
6157import org .slf4j .LoggerFactory ;
6258import org .testcontainers .containers .KafkaContainer ;
6359import org .testcontainers .containers .output .Slf4jLogConsumer ;
64- import org .testcontainers .shaded .com .google .common .collect .ImmutableMap ;
6560import org .testcontainers .utility .DockerImageName ;
6661
6762import java .io .IOException ;
@@ -185,15 +180,7 @@ void createsProducerAndSendsData() throws IOException {
185180
186181 @ Test
187182 @ Order (5 )
188- void createsProducerAndSendsMessage () throws Exception {
189- final AdminClient admin = AdminClient .create (
190- ImmutableMap .of (AdminClientConfig .BOOTSTRAP_SERVERS_CONFIG , EntryTest .servers )
191- );
192- new CreateTopics (
193- admin ,
194- new NewTopic ("TEST-TOPIC" , 1 , (short ) 1 )
195- ).value ()
196- .get (30L , TimeUnit .SECONDS );
183+ void createsProducerAndSendsMessage () {
197184 final Producer <String , String > producer = new KfProducer <>(
198185 new KfFlexible <>(
199186 new KfProducerParams (
@@ -220,7 +207,7 @@ void createsProducerAndSendsMessage() throws Exception {
220207 )
221208 )
222209 );
223- producer .send ("testcontainers" , new KfData <>("rulezzz " , "TEST-TOPIC" , 0 ));
210+ producer .send ("testcontainers" , new KfData <>("rulezzzd " , "TEST-TOPIC" , 0 ));
224211 Unreliables .retryUntilTrue (
225212 10 ,
226213 TimeUnit .SECONDS ,
0 commit comments