For the purpose of this guide, we assume you've already cloned/downloaded the projects, as mentioned in the main guide. This guide was written using Eclipse Neon, and was verified to work with Eclipse Oxygen.
USE JAVA 8 (JDK 1.8) WHEN CHOOSING THE JDK FOR THE PROJECTS CREATED HERE
- From the
newbutton/menu, chooseproject...
- In the dialog that opens, select
Java->Java Project
- A "New Java Project" dialog opens. Uncheck the
Use default locationbox so you can tell Eclipse where the code is.
Once you've unchecked the box, locate the top-level folder of the project, by clicking the browse button and selecting the folder:
click Next
- Make sure that the
srcandtestfolders are identified as source folders. They should have that little package-inside-a-folder icon.
-
Congrats! You now have an Eclipse project. Repeat with the other two projects you're checked out.
-
Now add project inter-dependencies. Right-click the project, and select
Propertiesfrom the contextual menu. SelectJava Build Pathon the side menu, and theProjectstab on the main pane. ClickAdd...and select the required projects.
- HW-Tests requires both HW-Implementation and HW-Definitions
- HW-Implementation requires HW-Definitions only
-
Now test your implementation: Right-click
HW-Tests'stestfolder, and selectRun As -> JUnit Testfrom the contextual menu. You should see a lot of failed tests in the JUnit report pane. That's cool - the provided implementation skeleton does not implement any of the tested functionality. -
Implement the tested functionality. Test your code using the technique show in the previous step.





