use of io.quarkus.kafka.client.serialization.ObjectMapperSerializer in project quarkus-quickstarts by quarkusio.
the class AggregatorTest method setUp.
@BeforeEach
public void setUp() {
temperatureProducer = new KafkaProducer(producerProps(), new IntegerSerializer(), new StringSerializer());
weatherStationsProducer = new KafkaProducer(producerProps(), new IntegerSerializer(), new ObjectMapperSerializer());
weatherStationsConsumer = new KafkaConsumer(consumerProps(), new IntegerDeserializer(), new ObjectMapperDeserializer<>(Aggregation.class));
}
use of io.quarkus.kafka.client.serialization.ObjectMapperSerializer in project quarkus-quickstarts by quarkusio.
the class TopologyProducerTest method setUp.
@BeforeEach
public void setUp() {
Properties config = new Properties();
config.put(StreamsConfig.APPLICATION_ID_CONFIG, "testApplicationId");
config.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, "dummy:1234");
testDriver = new TopologyTestDriver(topology, config);
temperatures = testDriver.createInputTopic(TEMPERATURE_VALUES_TOPIC, new IntegerSerializer(), new StringSerializer());
weatherStations = testDriver.createInputTopic(WEATHER_STATIONS_TOPIC, new IntegerSerializer(), new ObjectMapperSerializer());
temperaturesAggregated = testDriver.createOutputTopic(TEMPERATURES_AGGREGATED_TOPIC, new IntegerDeserializer(), new ObjectMapperDeserializer<>(Aggregation.class));
}
Aggregations