Skip Headers

Test the Application

Previous
Previous
 
Next
Next

The tutorial includes JUnit tests for the application.

  1. In Eclipse, right-click the Advanced_Tutorial project and select Refresh. Eclipse refreshes the TopLink project information.

  2. Right-click the ModelTest.java and select Run As > JUnit Test. The Junit tab appears and executes the following tests:

    • testOneToManyMapping

    • testNamedQuery

    • testManyToManyMapping

    • testOneToOneMapping

    • testVariousMapping