From: Kai Moritz Date: Sat, 13 Aug 2022 13:24:53 +0000 (+0200) Subject: GRÜN: Erwartungen implementiert X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=feea88916b49420021313112a217bce261868978;p=demos%2Fkafka%2Ftraining GRÜN: Erwartungen implementiert --- diff --git a/src/main/java/de/juplo/kafka/SumBusinessLogic.java b/src/main/java/de/juplo/kafka/SumBusinessLogic.java index 5cb906a..605e55c 100644 --- a/src/main/java/de/juplo/kafka/SumBusinessLogic.java +++ b/src/main/java/de/juplo/kafka/SumBusinessLogic.java @@ -31,6 +31,6 @@ public class SumBusinessLogic public synchronized Optional getSum(String user) { - return Optional.empty(); + return Optional.ofNullable(state.get(user)); } }