AddRecipe Acceptance Test

Only three recipes may be added to the CoffeeMaker. A recipe consists of a name, price, units of coffee, units of milk, units of sugar, and units of chocolate. Each recipe name must be unique in the recipe list. Price must be handled as an integer.

fit.ActionFixture
start edu.ncsu.csc326.coffeemaker.AddRecipe  
press start recipe  
enter recipe name Coffee
enter recipe price 50
enter recipe coffee units 2
enter recipe milk units 1
enter recipe sugar units 1
enter recipe chocolate units 0
check add recipe true
press start recipe  
enter recipe name Latte
enter recipe price 75
enter recipe coffee units 2
enter recipe milk units 2
enter recipe sugar units 1
enter recipe chocolate units 0
check add recipe true
press start recipe  
enter recipe name Hot Chocolate
enter recipe price 150
enter recipe coffee units 0
enter recipe milk units 1
enter recipe sugar units 0
enter recipe chocolate units 2
check add recipe true
press start recipe  
enter recipe name Mocha
enter recipe price 50
enter recipe coffee units 2
enter recipe milk units 0
enter recipe sugar units 1
enter recipe chocolate units 1
check add recipe false
press start recipe  
enter recipe name Coffee
enter recipe price 50
enter recipe coffee units 2
enter recipe milk units 1
enter recipe sugar units 1
enter recipe chocolate units 0
check add recipe false

Return to CoffeeMaker Example

Add Recipe FIT Test © 2004 Dr. Laurie Williams, Sarah Smith