Application Platform 10.3 | Application Platform API | Generating Tests with the Application Platform Integration Test Framework
 
Generating Tests with the Application Platform Integration Test Framework
 
Non-Parameterized Tests
Parameterized Tests
Test Class Annotations
Examples of Using the Application Platform Integration Test Framework
This section describes the main classes and annotations that you should use when you develop JUnit tests in the Application Platform integration test framework. The classes are available in the Application Platform API Libraries classpath container.
For more information about JUnit testing, including classes and annotations, see the JUnit website at http://junit.org.
The following table lists and describes the available classes in the Application Platform integration test framework.
Class and Description
com.softwareag.applatform.sdk.test.framework.AppPlatformIntegrationTest
An abstract base class, from which your test classes can inherit in order to use the JUnit runner.
com.softwareag.applatform.sdk.test.framework.IntegrationTestRunner
The main class that drives the Application Platform integration test framework.
com.softwareag.applatform.sdk.test.framework.AppPlatformIntegrationTestWithParameters
A convenience abstract base class that your test classes can inherit from when you create parameterized tests.
com.softwareag.applatform.sdk.test.framework.ParameterizedIntegrationTestRunner
A custom JUnit runner that supports running parameterized tests in the Application Platform integration test framework.
The following table lists and describes the available annotations in the Application Platform integration test framework.
Annotation and Description
com.softwareag.applatform.sdk.annotations.TestBundle
A required class-level annotation that must be specified on every test class that should be executed within the Application Platform integration test framework.
com.softwareag.applatform.sdk.annotations.RunOnServer
Used to specify the details of the server, on which the bundle that hosts the test class exists and the test class is executed.