projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfbad8b
)
ROT: Übersehene Erwartung an SumBusinesLogic.endSum(String) ergänzt
author
Kai Moritz
<kai@juplo.de>
Sat, 13 Aug 2022 15:57:38 +0000
(17:57 +0200)
committer
Kai Moritz
<kai@juplo.de>
Sun, 14 Aug 2022 13:14:53 +0000
(15:14 +0200)
src/test/java/de/juplo/kafka/AdderBusinessLogicTest.java
patch
|
blob
|
history
diff --git
a/src/test/java/de/juplo/kafka/AdderBusinessLogicTest.java
b/src/test/java/de/juplo/kafka/AdderBusinessLogicTest.java
index
0325c63
..
435f036
100644
(file)
--- a/
src/test/java/de/juplo/kafka/AdderBusinessLogicTest.java
+++ b/
src/test/java/de/juplo/kafka/AdderBusinessLogicTest.java
@@
-59,6
+59,16
@@
public class AdderBusinessLogicTest
assertThatNoException().isThrownBy(() -> adder.endSum("foo"));
}
+ @Test
+ @DisplayName("An existing sum is removed, if ended")
+ public void testEndSumRemovesSumIfSumExists()
+ {
+ AdderBusinessLogic adder = new AdderBusinessLogic();
+ adder.startSum("foo");
+ adder.endSum("foo");
+ assertThat(adder.getSum("foo")).isEmpty();
+ }
+
@Test
@DisplayName("An existing Sum returns a non-null value, if ended")
public void testEndSumReturnsNonNullValueIfSumExists()