コード例 #1
0
 @Test(expected = InvalidValueException.class)
 public void testCantAddNegativeChocolateToInventroy() throws Exception {
   CM.addChocolateInventory(-1);
 }
コード例 #2
0
 @Test(expected = InvalidValueException.class)
 public void testCantAddMoreThanLimitChocolateToInventroy() throws Exception {
   assertEquals(20, CM.checkChocolateInventory());
   CM.addChocolateInventory(81);
 }