This small program allows the user to add cars and perform basic functions on it:
- Attempt to drive requested miles.
- Add provided gallons of gas.
- Return amount of gas.
- Return total number of miles driven (odometer).
- Clone repository to local machine.
- Use a text editor to change the main function in SimpleCar.java with any car you like.
- Download the tester package using this link and move it into the same directory as SimpleCar.java and JUnit.java.
- Open terminal and make sure you are in the same directory as all the files.
- Run the tester using the following two commands in order:
- javac -d . -cp ./junit-platform-console-standalone-1.5.0.jar *.java
- java -jar ./junit-platform-console-standalone-1.5.0.jar -cp . --scan-class-path