Browse Source

Added: Empty Warehouse Test

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
b6d9a7d449
  1. 12
      projjpn/src/test/java/de/hs_fulda/ciip/projjpn/WarehouseTest.java

12
projjpn/src/test/java/de/hs_fulda/ciip/projjpn/WarehouseTest.java

@ -44,6 +44,18 @@ public class WarehouseTest extends TestCase {
// Then
assertEquals(expectedSum, actualSumOfAllItems);
}
public void test_emptyWarehouse() {
// Given
Warehouse warehouse = new Warehouse();
// When
int expectedSum = 0;
// Then
int actualSumOfAllItems = warehouse.getCountOfStock();
assertEquals(expectedSum, actualSumOfAllItems);
}
}
Loading…
Cancel
Save