mvn compile mvn exec:java -Dexec.mainClass=filevalidation.service.BankTransactionValidationServiceImpl
This programme will take src/main/resources/records.json file as input and processes it and generates a report src/main/resources/out/report.csv with invalid transactions
Assumptions
- Start balance and End balance can be negative
- There is no other validation on any field except what's mentioned in the assignment sheet.
- File is already present to be processed under src/main/resources
- Output report generated is in csv format and will be stored under the folder sec/main/resources/out.
What can be improved further:
- System outs can be replaced with proper loggers
- We can add jacoco to put a benchmark figure for line and branch coverage in junits
- Exception Handling