A console program that imitate the Vending Machine, receives the standard input and generate the standard output
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
1. git clone https://github.com/shankar96/VendingMachine.git
2. mvn clean compile
3. mvn test
4. mvn exec:exec
What things you need to install the software and how to install them
java and mvn installed
1. mvn package
2. java -jar target/VendingMachine-1.0-SNAPSHOT.jar
There are three basic tests to check running state of vending machine
purchase successfull on inserting same required coins as item price
insert coins 10JPY 10JPY 100JPY
purchase canned coins
successfull ✔
returned coins 0
return change will happen if amount is more than item value if there is sufficient change
insert coins 10JPY 10JPY 10JPY 100JPY
purchase canned coins
successfull ✔
returned coins 10
return all amount will happen if amount is more than item value if there is insufficient change
insert coins 10JPY 10JPY 10JPY 100JPY
purchase canned coins
successfull ✔
returned coins 130
insert coins 10JPY 10JPY 10JPY
purchase canned coins
successfull ✔
returned coins 20
Additional notes about how to deploy this on a live system copy generated jar files to use anywhere
- Maven - Dependency Management
- Shankar Kumar Chaudhary - Initial work - Shanky
See also the list of contributors who participated in this project.