Interactive Console Command Line Application (Spring Boot + Spring Shell)
-Java 8
-Spring Boot
-Spring Shell
-Maven
Using Maven:
> mvn clean install
> mvn spring-boot:run
NOTE:
-shell:>
prompt will be displayed when application has fully started.
-initial number of bills for each denomination is 10 (configured via properties file).
-
Show current status:
shell:> show
-
Add bills to register:
shell:> put 5,5,5,5,5
shell:> put "5, 5, 5,5 , 5"
NOTE: For simplicity purposes, comma delimiter is mandatory to automatically load to an int array parameter
-
Remove bills from register:
shell:> take 5,5,5,5,5
shell:> take "5, 5, 5,5 , 5"
-
Dispense bills for a change amount:
shell:> change 87 -
quit
andexit
will shutdown the Spring Boot application.NOTE:
quit
andexit
are reserved commands for Spring Shell and therefore can not be used as user command.
DISCLAIMER: Due to time constraint, shell automated integration tests as well as repository and controller unit tests have been skipped.