From b9c6c11abf9176fa5a28ade0a3334f594812b71e Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 17:18:31 +0100 Subject: [PATCH] Minor Refactoring of test_buildCompleteItem() --- .../src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 6abf9c3..2a94571 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 @@ -47,7 +47,11 @@ public class ItemTest extends TestCase { public void test_buildCompleteItem() { // Given - Item item = new Item("Logitec Maus", "Gaming Maus fuer Fortgeschrittene.", 10, 69.99f); + String expectedTitel = "Logitec Maus"; + String expectedDescription = "Gaming Maus fuer Fortgeschrittene."; + int expectedQuantity = 10; + float expectedPrice = 69.99f; + Item item = new Item(expectedTitel, expectedDescription, expectedQuantity, expectedPrice); assertNotNull(item); }