The Coffee Maker exercise - with a shell implementation
Directions...
- Clone
- Implement a coffee maker
To Run:
mvn package
java -cp target/CoffeeMaker-1.0-SNAPSHOT.jar Mark4CoffeeMaker
To Test:
mvn test
Use Cases
-
Brew Button is pushed. Heaters are turned on. Pressure valve is closed.
-
Coffee Pot is pulled away. Pressure Valve is opened to stop flow of coffee.
-
Coffee Pot is returned. Pressure valve is closed.
-
Pot is full, brew indicator light is turned on. Pressure valve is opened. Warmer turned on. Heater turned off.
-
Pot is empty. Brew indicator light turns off. Warmer turned off.