|
|
@ -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); |
|
|
|
} |
|
|
|