Using Junit to do logical unit testing

  • Logical unit testing is the simplest automated testing a programmer can do, this is the first type of testing that should be done (before integration testing, system testing, etc...)
  • Logical unit testing in Sakai is mostly done using Junit
  1. Add the Junit dependencies to your project in Eclipse
    1. Select your project in the Package Explorer
    2. Click on Project -> Properties (or right-click and select Properties)
    3. Click on Java Build Path
    4. Click on the Libraries tab
    5. Click the Add Variable button on the right
    6. Select the MAVEN_REPO variable and click the Extend... button on the right
    7. Click on junit -> jars -> junit-3.8.1.jar and click OK
    8. Click OK to close the project properties window
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.