Browse Source

Minor Refactoring of test_buildCompleteItem()

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
b9c6c11abf
  1. 6
      projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java

6
projjpn/src/test/java/de/hs_fulda/ciip/projjpn/ItemTest.java

@ -47,7 +47,11 @@ public class ItemTest extends TestCase {
public void test_buildCompleteItem() { public void test_buildCompleteItem() {
// Given // 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); assertNotNull(item);
} }

Loading…
Cancel
Save