- Pausing after 50 messages, does it have to re-trigger itself? Because #2 requirement says, all messages should be processed.
- Requirement #5, Do we need to log adjustments applied or also the amount of adjustment for a product type as well?
- Record sales in the system.
- Log Aggregated report of product and it's value.
- Apply adjustments to sales
- Pause org.jpchase.codingtest.listener after receiving 50 messages
- Log report of Adjustment Operators applied
- Aggregated report of products should be for all the sales received till now.
- Adjustment Operators needs to be applied to all the recorded sales.
- Aggregated report of Adjustment Operators will be for the current set of 50 messages.
- All sales messages are in same currency denomination. Here they are
p
. - For Doubt #1,Assuming Application will only process 50 messages.
- For Doubt #2, Assuming only the Adjustments applied need to be logged, not the price that got adjusted.
- Java 8
- Gradle 2.12
- For building
gradle clean build
- For running unit tests
gradle clean test
- For running simulator
gradle simulate
OR RunSalesNotificationSimulation