Search in sources :

Example 1 with JsonObjectDeserializer

use of io.vertx.kafka.client.serialization.JsonObjectDeserializer in project smallrye-reactive-messaging by smallrye.

the class KafkaCompanionTestBase method initCompanion.

@BeforeAll
static void initCompanion(@KafkaBootstrapServers String bootstrapServers) {
    companion = new KafkaCompanion(bootstrapServers);
    companion.registerSerde(JsonObject.class, Serdes.serdeFrom(new JsonObjectSerializer(), new JsonObjectDeserializer()));
}
Also used : JsonObjectSerializer(io.vertx.kafka.client.serialization.JsonObjectSerializer) JsonObjectDeserializer(io.vertx.kafka.client.serialization.JsonObjectDeserializer) KafkaCompanion(io.smallrye.reactive.messaging.kafka.companion.KafkaCompanion) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

KafkaCompanion (io.smallrye.reactive.messaging.kafka.companion.KafkaCompanion)1 JsonObjectDeserializer (io.vertx.kafka.client.serialization.JsonObjectDeserializer)1 JsonObjectSerializer (io.vertx.kafka.client.serialization.JsonObjectSerializer)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1