From b6d9a7d4497e9cb71bda1edcdb444f4b3b1a82dd Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 22:10:28 +0100 Subject: [PATCH] Added: Empty Warehouse Test --- .../java/de/hs_fulda/ciip/projjpn/WarehouseTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/WarehouseTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/WarehouseTest.java index f713f83..74fb8f9 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/WarehouseTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/WarehouseTest.java @@ -44,6 +44,18 @@ public class WarehouseTest extends TestCase { // Then assertEquals(expectedSum, actualSumOfAllItems); + } + + public void test_emptyWarehouse() { + // Given + Warehouse warehouse = new Warehouse(); + + // When + int expectedSum = 0; + + // Then + int actualSumOfAllItems = warehouse.getCountOfStock(); + assertEquals(expectedSum, actualSumOfAllItems); } }