Outer Join! demo--stream-stream--outer-join
authorKai Moritz <kai@juplo.de>
Fri, 5 Jul 2024 22:06:14 +0000 (00:06 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 6 Jul 2024 07:28:16 +0000 (09:28 +0200)
pom.xml
src/test/java/de/juplo/kafka/wordcount/counter/StreamStreamJoinTopologyTest.java

diff --git a/pom.xml b/pom.xml
index 4e264b6..c7173ed 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
        </parent>
 
        <groupId>de.juplo.kafka.streams.demos</groupId>
-       <artifactId>stream-stream--left-join</artifactId>
+       <artifactId>stream-stream--outer-join</artifactId>
        <version>1.0.0-SNAPSHOT</version>
 
        <name>Outcome of a Left Stream/Stream-Join</name>
index 1d39a00..66ce22a 100644 (file)
@@ -31,7 +31,7 @@ public class StreamStreamJoinTopologyTest
     KStream<String, String> right = builder.stream(RIGHT);
 
     left
-        .leftJoin(
+        .outerJoin(
             right,
             (valueLeft, valueRight) -> valueLeft + "-" + valueRight,
             JoinWindows.ofTimeDifferenceAndGrace(
@@ -96,7 +96,7 @@ public class StreamStreamJoinTopologyTest
     assertThatOutcomeIs("F-null");
 
     sendLeftAt("G", 100);
-    assertThatOutcomeIs();
+    assertThatOutcomeIs("null-f");
   }