|
|
@ -3,12 +3,9 @@ package de.hs_fulda.ciip.projjpn; |
|
|
|
import junit.framework.TestCase; |
|
|
|
|
|
|
|
public class WarehouseTest extends TestCase { |
|
|
|
/* |
|
|
|
* public void test_fillWareHouseWithItems() { for (int i = 0; i < 10; i++) { |
|
|
|
* |
|
|
|
* } } |
|
|
|
/** |
|
|
|
* Check if the insertion of an Item works properly. |
|
|
|
*/ |
|
|
|
|
|
|
|
public void test_insertItemInWarehouse() { |
|
|
|
// Given |
|
|
|
Warehouse warehouse = new Warehouse(); |
|
|
@ -37,7 +34,7 @@ public class WarehouseTest extends TestCase { |
|
|
|
Warehouse warehouse = new Warehouse(); |
|
|
|
int unitsPerItemType = 3; |
|
|
|
int expectedSize = 13; |
|
|
|
for(int i = 0; i < expectedSize; i++) { |
|
|
|
for (int i = 0; i < expectedSize; i++) { |
|
|
|
Item item = new Item("ItemDummy" + i, "DescriptionDummy" + i, unitsPerItemType, 12.0f); |
|
|
|
warehouse.insertItem(item); |
|
|
|
} |
|
|
|