WIP
authorKai Moritz <kai@juplo.de>
Sat, 10 Sep 2022 06:48:57 +0000 (08:48 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 10 Sep 2022 07:49:04 +0000 (09:49 +0200)
src/main/java/de/juplo/kafka/ApplicationConfiguration.java
src/test/java/de/juplo/kafka/GenericApplicationTests.java

index c6798f1..f8bf857 100644 (file)
@@ -66,10 +66,4 @@ public class ApplicationConfiguration
             errorHandler,
             recordHandler);
   }
-
-  @Bean
-  public ApplicationErrorHandler applicationErrorHandler()
-  {
-    return new ApplicationErrorHandler();
-  }
 }
index d54a5bb..753debe 100644 (file)
@@ -392,5 +392,11 @@ abstract class GenericApplicationTests<K, V>
                {
                        return new TestRecordHandler(applicationRecordHandler);
                }
+
+    @Bean(destroyMethod = "close")
+    public org.apache.kafka.clients.consumer.Consumer<String, Message> kafkaConsumer(ConsumerFactory<String, Message> factory)
+    {
+      return factory.createConsumer();
+    }
        }
 }