Skip to content

deepenpatel3/Credit_Card_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit card number verification and classification from different file formats in java.

Demo of program execution:

Screen Shot 2020-04-23 at 8 53 10 PM

Testing:

Implementation: I have utilized Chain of responsibility and Strategy pattern to solve this problem. To describe about strategy pattern, based on the input filename is entered, appropriate strategy is selected, and suitable file-reader object is created, and first concrete handler is called. In case of match, concrete handler returns the string with the correct card-type, otherwise the successor is invoked to process the request.

Testing: For testing, I have hard-coded the directory path (where input files are present) instead of taking input from terminal. Each test reads the output file which has been recently created and compares the card-type with the expected result to see if the test passed.

Class diagram of the architecture:

image

About

An application for verification and classification of Credit cards taking input from different file formats (.CSV, .JSON, .XML) in java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages