Skip Headers

Test the Application

Previous
Previous
 
Next
Next

The tutorial includes JUnit tests for the application.

  1. In JDeveloper, right-click the Advanced_Tutorial project and select Project Properties. The Default Project Properties dialog appears.

  2. Select the Libraries page. On the Default Project Properties dialog – Libraries page, click Add Library. The Add Library dialog appears.

  3. Select the JUnit Runtime library and click OK.

  4. On the Default Project Properties dialog – Libraries page, click OK.

  5. 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