Designing and Implementing Composite Applications : Getting Started with the webMethods Application Platform API : Using the Application Platform API : Generating Tests with the Application Platform Integration Test Framework : Non-Parameterized Tests
Non-Parameterized Tests
Use the following classes when you create non-parameterized tests.
AppPlatformIntegrationTest
The com.softwareag.applatform.sdk.test.framework.AppPlatformIntegrationTest class is an abstract base class, from which your test classes can inherit in order to use the JUnit runner.
This class provides no-op implementations for the following methods, which can be overridden:
Annotation Name
Method Name
@BeforeClass
setupClass
@AfterClass
destroyClass
@Before
setup
@After
Destroy
IntegrationTestRunner
The com.softwareag.applatform.sdk.test.framework.IntegrationTestRunner class is the main class that drives the Application Platform integration test framework. This class is a custom JUnit runner class and it is activated through the JUnit @RunWith annotation.
If you use the AppPlatformIntegrationTest class as the base class of your tests, you do not have to use the IntegrationTestRunner class directly in your tests. You need to use the IntegrationTestRunner class only if your test class already extends from another base class and it cannot extend from AppPlatformIntegrationTest.
The IntegrationTestRunner class performs the following key steps:
1. Validates that the test class contains the @TestBundle annotation with the bundle symbolic name and the bundle version, if it is specified.
2. Initiates a JMS client connection to the configured server by using the details from the @RunOnServer annotation, if specified. If the @RunOnServer annotation is not specified, the class uses the default values.
3. Verifies that the bundle that contains the test class is deployed and active on the running server.
4. Executes the annotated @Test methods in the test class by making a JMX call to the actual test class that is hosted in the project bundle.
5. Captures success and failure messages of the test run and reports them to the JUnit and the Console view in Designer.
6. Terminates the JMX client connection when the test class is executed.
Copyright © 2016- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback