Test the Application |
![]() Previous |
![]() Next |
The tutorial includes JUnit tests for the application.
In JDeveloper, right-click the Advanced_Tutorial project and select Project Properties. The Default Project Properties dialog appears.
Select the Libraries page. On the Default Project Properties dialog – Libraries page, click Add Library. The Add Library dialog appears.
Select the JUnit Runtime library and click OK.
On the Default Project Properties dialog – Libraries page, click OK.
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