You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✗ java -cp out/artifacts/kiran_cmpe_202_jar/kiran-cmpe-202.jar com.kiran.Main src/main/resources/input.csv output/output.csv
Output is written to output.csv in output folder
✗ cat output.csv
CardNumber,CardType
5567894523129089,MasterCard
59012345678901234567890,"Invalid: more than 19 digits"
4123456789123,Visa
347856341908126,AmericanExpress
6011111100007756,Discover
3601112345678789,"Invalid: not a possible card number"
5167894523129089,MasterCard
4123456789123999,Visa
377856341908126,AmericanExpress
5367894523129089,MasterCard
"6011*890HJrt6789","Invalid: non numeric characters"
,"Invalid: empty/null card number"
JSON
✗ java -cp out/artifacts/kiran_cmpe_202_jar/kiran-cmpe-202.jar com.kiran.Main src/main/resources/input.json output/output.json
Output is written to output.csv in output folder
✗ java -cp out/artifacts/kiran_cmpe_202_jar/kiran-cmpe-202.jar com.kiran.Main src/main/resources/input.xml output/output.xml
Output is written to output.csv in output folder
Validation that input and output file extensions are same
✗ java -cp kiran-cmpe-202.jar com.kiran.Main src/main/resources/input.csv output/output.xml
Exception in thread "main" java.lang.RuntimeException: Input and output extensions should be the same
Validation that input file path exists
✗ java -cp kiran-cmpe-202.jar com.kiran.Main input.csv output/output.csv
Exception in thread "main" java.lang.RuntimeException: Input path does not exist