PurchaseBeverage Acceptance Test
The user will not be able to purchase a beverage if they do not deposit enough money into the CoffeeMaker. Change will be dispensed to the user, if they paid more than the price of the beverage. A user's money will be returned if there is not enough inventory to make the beverage.
There are 3 recipes in the CoffeeMaker: Coffee,50,6,1,1,0; Latte, 75,6,6,0,0; and Hot Chocolate,100,0,2,0,2
fit.ActionFixture | ||
start | edu.ncsu.csc326.coffeemaker.PurchaseBeverage | |
press | start coffee maker | |
enter | recipe name | Coffee |
enter | user money | 55 |
check | purchase beverage | 5 |
enter | recipe name | Coffee |
enter | user money | 45 |
check | purchase beverage | 45 |
CheckInventory FIT Test © 2004 Dr. Laurie Williams, Sarah Smith