- JDK 11.
- Installed Maven
- Working directory: stock-exchange-orders
mvn clean compile install package
- Working directory: stock-exchange-orders
- Example Orders File= orders.txt
- Run below command.
java -jar target/geektrust.jar orders.txt
- Console Logs
- Filepath Log: application.log
Search for pattern for the expected Transaction format(format:"[buy-order-id] [sell-price] [qty] [sell-order-id]"):
grep "Order Transaction completed" application.log