top10: 1.2.1 - (GREEN) Made the aggregation state accessible
authorKai Moritz <kai@juplo.de>
Thu, 30 May 2024 09:01:27 +0000 (11:01 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 8 Jun 2024 11:15:05 +0000 (13:15 +0200)
commit9e0ee342b531e7cfcddfe2e34390807802725a14
tree2cc4d3c77218323053afd113e8b1d37c6d760d62
parentb69e1270a308f200b2640a01d37d4636a0a549e1
top10: 1.2.1 - (GREEN) Made the aggregation state accessible

* The assertion, regarding the expected state, is true for both tests.
* The assertion, regarding the expected messages, ix only true for the
  test that is based on the `TopologyTestDriver`.
* _This highlights the need for an additional integration test to avoid
  misinterpretation of the results of tests, that are based on the
  ``TopologyTestDriver``.
* _Note,_ that the assertion, regarding the expected state, works as
  well in the `Top10ApplicationIT`, if the output buffering is enabled,
  because the changed state becomes visible immediately.
* The buffering ist still turned of, so that the disabled test can be
  run in IntelliJ to comprehend, that the assertion is actually false.
src/main/java/de/juplo/kafka/wordcount/top10/Top10ApplicationConfiguration.java
src/main/java/de/juplo/kafka/wordcount/top10/Top10StreamProcessor.java
src/test/java/de/juplo/kafka/wordcount/top10/Top10ApplicationIT.java