From: Kai Moritz Date: Sat, 13 Aug 2022 13:24:53 +0000 (+0200) Subject: GRÜN: Erwartungen implementiert X-Git-Tag: sumup-adder---lvm-2-tage~31 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=25ffddd625259ea3011639eae4ce311a7b41394d;p=demos%2Fkafka%2Ftraining GRÜN: Erwartungen implementiert --- diff --git a/src/main/java/de/juplo/kafka/AdderBusinessLogic.java b/src/main/java/de/juplo/kafka/AdderBusinessLogic.java index df8c5f9..9fd5b0d 100644 --- a/src/main/java/de/juplo/kafka/AdderBusinessLogic.java +++ b/src/main/java/de/juplo/kafka/AdderBusinessLogic.java @@ -32,6 +32,6 @@ public class AdderBusinessLogic public synchronized Optional getSum(String user) { - return Optional.empty(); + return Optional.ofNullable(state.get(user)); } }