コード例 #1
0
 @Test(expected = InvalidValueException.class)
 public void testCantAddMoreThanLimitCoffeeToInventroy() throws Exception {
   assertEquals(20, CM.checkCoffeeInventory());
   CM.addCoffeeInventory(81);
 }
コード例 #2
0
 @Test(expected = InvalidValueException.class)
 public void testCantAddNegativeCoffeeToInventroy() throws Exception {
   CM.addCoffeeInventory(-1);
 }