Skip to content

Commit

Permalink
Fix Dlq production exception handler unit tests (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc GREFFIER authored Nov 6, 2023
1 parent 94d009f commit 2b0dbb4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

import com.michelin.kstreamplify.avro.KafkaError;
import com.michelin.kstreamplify.context.KafkaStreamsExecutionContext;
import com.michelin.kstreamplify.error.DlqExceptionHandler;
import com.michelin.kstreamplify.error.DlqProductionExceptionHandler;
import io.confluent.kafka.serializers.KafkaAvroSerializer;
import io.confluent.kafka.serializers.KafkaAvroSerializerConfig;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -99,7 +97,7 @@ void shouldConfigure() {
configs.put("schema.registry.url", "localhost:8080");
configs.put("acks", "all");

handler = new DlqProductionExceptionHandler();
handler = new DlqProductionExceptionHandler(null);
handler.configure(configs);

assertTrue(DlqExceptionHandler.getProducer() instanceof KafkaProducer<byte[], KafkaError>);
Expand Down

0 comments on commit 2b0dbb4

Please sign in to comment.