Performing the Unit Tests

If the generated Java classes are compiled without error, you can run the unit tests within Eclipse or using Ant.

The unit tests generate random data to create and update objects.

After creating, updating, deleting or finding objects, a test asserts that the result is as expected.

If the result is as expected, the test succeeds; otherwise it fails.

Before running the unit tests, you need to:

  1. Create the database file.
  2. Define an ODBC connection.
  3. Generate the database from the PDM using the ODBC connection.
  4. Give the test user the permission to connect to the database.
  5. Start the database.