Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 922 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 922 Bytes

MessageProcessor

This project is the Implementation of a small message processing application that will processing sales notification messages. It will generate a report about no. of sales ,type of product and revenue generated for every 10th record. For 50 records it will stop and generate a adjustment log as well.

Prerequisite are:

1.Input data should be in Json format.

2.Add jackson-databind dependency in pom.xml

3.Add Junit, Mockito and Log4j Jars

As per the probelm staement ,there are three input message types in JSON:

1.Message(type 1) which has values productType and sellingPrice.

2.saleMessage(type 2) which has values productType,sellingPrice,saleCount.

3.AdjustmentMessage(type 3) which has values operationType,productType and sellingPrice.

Two test json(Messages.json,Messages60.json) are being commited . One with 11 meesages and 60 messages for which path can be changed in main.java.