splitter: 1.0.0-vanilla-kafka - Fixed the test "Context Loads"
authorKai Moritz <kai@juplo.de>
Sun, 26 Jun 2022 08:54:39 +0000 (10:54 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 26 Jun 2022 08:54:41 +0000 (10:54 +0200)
commit7a3d748f77f7eb2754dd1db63d087ebdd8b8a3e2
tree8f4dd6c9a635ee75b91f817c43b967b969017d90
parent08ef2cb2e9bcef5a051eedd64da492baee6c1507
splitter: 1.0.0-vanilla-kafka - Fixed the test "Context Loads"

* Added `spring-kafka-test` as dependency.
* Added `@EmbeddedKafka` to the integration test.
* Configured the test to support transactions (replication factor == 1).
* Fixed the `SplitterStreamProcessor`: the application logic is executed
  in a background thread, because it blocks the startup of Spring Boot
  otherwise.
pom.xml
src/main/java/de/juplo/kafka/wordcount/splitter/SplitterStreamProcessor.java
src/test/java/de/juplo/kafka/wordcount/splitter/ApplicationTests.java