Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 1.99 KB

File metadata and controls

40 lines (21 loc) · 1.99 KB

Setting Up the HW Projects in Eclipse

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

  1. From the new button/menu, choose project...

Select "new->project"

  1. In the dialog that opens, select Java->Java Project

Select "Java Project"

  1. A "New Java Project" dialog opens. Uncheck the Use default location box so you can tell Eclipse where the code is.

Select "Java Project - initial"

Once you've unchecked the box, locate the top-level folder of the project, by clicking the browse button and selecting the folder:

Select "Java Project"

click Next

  1. Make sure that the src and test folders are identified as source folders. They should have that little package-inside-a-folder icon.

src and test are identified as source folders

  1. Congrats! You now have an Eclipse project. Repeat with the other two projects you're checked out.

  2. Now add project inter-dependencies. Right-click the project, and select Properties from the contextual menu. Select Java Build Path on the side menu, and the Projects tab on the main pane. Click Add... and select the required projects.

  • HW-Tests requires both HW-Implementation and HW-Definitions
  • HW-Implementation requires HW-Definitions only

Select "Project dependencies"

  1. Now test your implementation: Right-click HW-Tests's test folder, and select Run As -> JUnit Test from 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.

  2. Implement the tested functionality. Test your code using the technique show in the previous step.