Java project following Mark Dexter's online tutorial demonstrating TDD, Unit Testing via JUnit. Database persistence is explored in two ways:
- with XML using XStream framework.
- using Java Serialization
The "my_library.jar" file is compiled to run with Java 6 and later. Additionally, make sure the "xstream-1.4.11.1.jar" file is in the same directory as the my_library.jar file when attempting to run the program, otherwise the program will fail.
After downloading/cloning the repo, do the following:
- open cmd
- navigate into the downloaded repo
- run the following command:
java -jar my_library.jar
- open a terminal session
- type in "java -version" to make sure Java is installed. If not, install a stable Java version.
- navigate into the downloaded repo
- run the following command:
java -jar my_library.jar
JUnit tests can be run directly from the test folder in your IDE of choice. I used Eclipse for my project. Alternatively, the AllTests.java class can be run as a JUnit test suite to run all tests at once.
Thank you Mark Dexter for your very informative Eclipse/Java Tutorial! You can find them on YoutTube, or at his webpage.