Skip to content

Commit

Permalink
change serializer and content type
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Pedro <[email protected]>
  • Loading branch information
antonio-pedro99 committed Mar 4, 2024
1 parent 115c84d commit 2dd3965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private MessageConverter<K, V, byte[], byte[]> buildMessageConverter(String cont
return (MessageConverter<K, V, byte[], byte[]>) new HttpJsonMessageConverter();
case BridgeContentType.KAFKA_JSON_BINARY:
return (MessageConverter<K, V, byte[], byte[]>) new HttpBinaryMessageConverter();
case TEXT:
case BridgeContentType.KAFKA_JSON_TEXT:
return (MessageConverter<K, V, byte[], byte[]>) new HttpTextMessageConverter();
}
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/strimzi/kafka/bridge/http/ProducerIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ void sendTextMessage(VertxTestContext context) throws InterruptedException, Exec
consumerProperties.setProperty(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, kafkaUri);

KafkaConsumer<String, String> consumer = KafkaConsumer.create(vertx, consumerProperties,
new StringDeserializer(), new KafkaJsonDeserializer<>(String.class));
new StringDeserializer(), new StringDeserializer());
consumer.handler(record -> {
context.verify(() -> {
assertThat(record.value(), is(value));
Expand Down

0 comments on commit 2dd3965

Please sign in to comment.