All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generator.server.springboot.broker.kafka.SampleProducerIT.mustache Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package {{packageName}}.sample.infrastructure.secondary.kafka.producer;

import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.util.concurrent.Future;
import org.apache.kafka.clients.producer.RecordMetadata;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import {{packageName}}.IntegrationTest;

@IntegrationTest
class SampleProducerIT {

  @Autowired
  private SampleProducer sampleProducer;

  @Test
  void shouldSend() {
    final Future sample = sampleProducer.send("sample");

    assertNotNull(sample);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy