UNIT TEST IN ECLIPSE

  • Choose Run > Run Configurations.... The Run Configurations window will appear.
  • Right-click on JUnit and choose New.
  • Set Test runner to JUnit 4.
  • Set the other variables to values similar to those in the screen shot on the right.
  1. Click on the Classpath tab.
  2. Remove the (default classpath) entry.
  3. Click on User Entries.
  4. Add folder business/src/test/conf/ .
  5. Add folder collapsed/jumpstart.war/WEB-INF/classes/ .
  6. Add all JARs from these folders:
    business/src/main/lib-compile/
    business/src/main/lib-runtime/ (actually, lib-runtime is empty)
    business/src/test/lib-test/
  7. Move the two folders to the top. It avoids conflicts.

 

©2008, 2018 Geoff Callender, Sydney, Australia