Steps to execute
- Import the project into an IDE
- Run the file Enrollment.java - Check the console for answers to the 5 questions asked
- Run each fo the following test classes to execute all the unit test cases a. EnrollmentTest.java - Test class for Enrollment.java b. EnrollmentDataSetTest.java - Test class for EnrollmentDataSet.java c. UtilTest.java - Test class for Util.java
Notes
- The FILE which acts as the database is stored in the src folder of the project directory structure, dataset.csv. If the file is altered, please ensure the changes are saved to this file.
- If another file is being used to run the code, please copy it to the src folder of the project directory structure and set the variable 'fileName' (in the main function of Enrollment.java) to the name of the file being used.
- If the file has another delimiter other than ",", it can be assigned to the variable 'delimiter' (in the main function of Enrollment.java).
- The csv files starting with test* are used for different unit tests.
- Application is written in Java 8.
- Unit test cases are written in JUnit 4.