Running Unit Tests

You can run unit test methods from:

The name of the JADE unit testing application is JadeUnitTest and that of the batch version is JadeUnitTestRun. It may be necessary to change your getAndValidateUser method to enable the unit testing applications to run.

By default, JADE initializes packages for RootSchema applications running in user schemas, including unit tests run using the JADE Unit Test framework. If you want to disable this initialization when the server node or the client node starts the application, define the PackageInitializationDisabledApp<n> parameter in the [JadeClient] section of the JADE initialization file. You can disable package initialization if the unit tests do not require functionality from any package imported by the user schema. This can reduce the startup time for the tests.

For example, to disable package initialization for unit tests run by the GUI JadeUnitTest application, add the following to your JADE initialization file.

[JadeClient]
PackageInitializationDisabledApp1=UnitTestSchema,JadeUnitTest

For example, to disable package initialization for unit tests run by the batch JadeUnitTestRun application, add the following to your JADE initialization file.

[JadeClient]
PackageInitializationDisabledApp1=UnitTestSchema,JadeUnitTestRun

When the unit tests finish running, the final failure count reflects the following.