- Programming language: Java 14
- Maven is used for dependency management. Please download dependency before running code.
- Function test exits in file
test/java/VendingMachineTest.java
- Main class is added only for testing. It acts as a driver to test end to end flow.
Assumption:
- It's assumed that all the possible ingredients are known. For simplicity all the possible ingredients are kept as Enum.