From a7fdc436a92cc37c8621c25899dac79ff5478370 Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 17:29:30 +0100 Subject: [PATCH] Extended: test_buildCompleteItem() by validQuantity Test --- projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java index 6583144..307b192 100644 --- a/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java +++ b/projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java @@ -64,5 +64,8 @@ public class ItemTest extends TestCase { boolean validTitle = itemNotNull.getTitel().equals(expectedTitel); assertTrue(validTitle); + + boolean validQuantity = itemNotNull.getCurrentStock() == expectedQuantity; + assertTrue(validQuantity); } }