Entity Parser
- Objective - To create a
Parser
which can parseString
andFile
to derive and return a specific object-type. - Purpose - To gain familiarity with reading and parsing from Files.
- Description
- View
src.main.resources
directory to view each of the text files being read in. - Ensure that all test cases in
com.github.curriculeon
pass with 100% success rate.
- View
Recommended Order of Completion:
FileReader
Part 0 - FileReader.toString()
PersonParser
Part 1 - PersonParser.parseString(String): Person
PersonParser.parseStrings(String[]): Person[]
PersonParser.parseFile(File): Person[]
PetParser
Part 2 - PetParser.parseString(String): Pet
PetParser.parseStrings(String[]): Pet[]
PetParser.parseFile(File): Pet[]
How to Download
Part 1 - Forking the Project
- To fork the project, click the
Fork
button located at the top right of the project.
Part 2 - Navigating to forked Repository
- Navigate to your github profile to find the newly forked repository.
- Copy the URL of the project to the clipboard.
Part 3 - Cloning forked repository
- Clone the repository from your account into the
~/dev
directory.- if you do not have a
~/dev
directory, make one by executing the following command:mkdir ~/dev
- navigate to the
~/dev
directory by executing the following command:cd ~/dev
- clone the project by executing the following command:
git clone https://github.com/MYUSERNAME/NAMEOFPROJECT
- if you do not have a
Part 4 - Check Build
- Ensure that the tests run upon opening the project.
- You should see
Tests Failed: 99 of 99 tests
- You should see
How to Submit
Part 1 - Pushing local changes to remote repository
- from a terminal navigate to the root directory of the cloned project.
- from the root directory of the project, execute the following commands:
- add all changes
git add .
- commit changes to be pushed
git commit -m 'I have added changes'
- push changes to your repository
git push -u origin master
- add all changes
Part 2 - Submitting assignment
- from the browser, navigate to the forked project from your github account.
- click the
Pull Requests
tab. - select
New Pull Request