GRÜN: Erwartungen implementiert
[demos/kafka/training] / src / main / java / de / juplo / kafka / AdderBusinessLogic.java
index 503fa88..1f3d9aa 100644 (file)
@@ -51,6 +51,11 @@ public class AdderBusinessLogic
     if (!state.containsKey(user))
       throw new IllegalStateException("No sumation for " + user + " in progress");
 
-    return state.get(user);
+    return state.remove(user);
+  }
+
+  protected Map<String, Long> getState()
+  {
+    return state;
   }
 }