Designing and Implementing Composite Applications : webMethods Application Platform User’s Guide : Developing with Application Platform in Designer : About the Application Platform Integration Test Framework
About the Application Platform Integration Test Framework
 
Creating a JUnit Test for an Application Platform Project
Executing a JUnit Test for an Application Platform Project
Application Platform enables you to write regular JUnit tests for your projects and execute them in Designer. When you execute a test, Designer provides you with immediate feedback for the test run.
The Application Platform integration test framework uses the same development-time deployment mechanism to publish the test project bundle to the server and to execute the test class and its methods on the server. Application Platform publishes and executes the tests through a JMX call on a JMX MBean service on the configured runtime. The core project code and the JUnit tests run in the same OSGi environment and access the same libraries and Application Programming Interfaces (API). The JUnit test code can use the deployed project POJO instances and other OSGi services that are available in the container, without mocking or stubbing any interactions.
Note:  
If required, your test can still mock certain method calls by using the available Mockito bundle in the runtime.
You can develop JUnit tests by using the custom JUnit classes, provided by Application Platform.
Generating Tests with the Application Platform Integration Test Framework
Copyright © 2016- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback