Test cases with mock recipeBook - Jomsaruj/coffeemaker GitHub Wiki

Test ID Test Case Name Description Expected Result Actual Result Status
61 checkInventoryAfterPurchasedMock Purchase recipe that require 3 coffee, 1 milk, 1 sugar Since 15 is default inventory, after purchase the recipe amount of coffee,sugar,milk and chocolate will become 12,14,14,15 respectively coffee = 18, sugar = 14, milk = 14, chocolate = 15 fail
62 returnChangeAfterPurchasedMock check amount of money return if purchase beverage with price 50 and pay with 60 bill 10 Same as expected result pass
63 checkInventoryAfterNotEnoughMoneyMock Check whether inventory decrease or not if our purchase fail due to the reason that money paid is not enough Inventory should remain stable Same as expected result pass
64 returnAfterNotEnoughMoneyMock check amount of money return if purchase fail due to not enough money(pay 40) 40 Same as expected result pass
65 checkInventoryAfterNotEnoughInventoryMock Check whether inventory decrease or not if our purchase fail due to the reason that inventory is not enough to make the beverage Inventory should remain stable Same as expected result pass
66 returnChangeAfterNotEnoughInventoryMock check amount of money return if purchase fail due to not enough inventory(pay 300) 300 Same as expected result pass
67 purchaseEmptyRecipeMock involk method makeCoffee with non-exist recipe number and amount of money as parameters return full amount of money that user input to the system Same as expected result pass
68 purchaseTwoBeverageMock involk method makeCoffee and check for remaining inventory Since 15 is default inventory, after purchase 2 cups of the recipe amount of coffee,sugar,milk and chocolate will become 9,13,13,15 respectively coffee = 21, sugar = 13, milk = 13, chocolate = 15 fail