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 : Test Class Annotations
Test Class Annotations
Use the following annotations for the test classes you create for your Application Platform integration tests.
@TestBundle
The @TestBundle annotation is a required class-level annotation. You must specify this annotation on every test class that should be executed within the Application Platform integration test framework.
The following table lists the properties of @TestBundle:
Property Name
Default Value
Description
symbolicName
The project name of the corresponding Application Platform project.
String Required. The symbolic name of the bundle that contains this test class when it is deployed to the configured server runtime. This value corresponds to the Bundle-SymbolicName OSGi header value.
version
1.0.0
String Optional. The version of the bundle that hosts the corresponding test class. This value corresponds to the Bundle-Version OSGi header value.
@RunOnServer
Use the @RunOnServer annotation to specify the details of the server, on which the bundle hosting the test class exists, and where the test class is executed. Do not use @RunOnServer if the configured server uses the same default values, as the default values of the annotation. The default values of @RunOnServer correspond to the default values of a local Integration Server instance. However, if any of the server properties are different from the default values, you must specify the @RunOnServer annotation at the test class level.
Note:  
If you are using My webMethods Server, note that its default JMX port value is different.
The following table lists the properties of @RunOnServer:
Property Name
Default Value
Description
host
localhost
String Optional. The host name of the server, on which the Application Platform project bundle is deployed.
jmxPort
8075
Integer Optional. The JMX port of the configured server.
username
Administrator
String Optional. The JMX client connection username.
pwd
manage
String Optional. The JMX client connection password.
timeout
15000
Integer Optional. The JMX client connection timeout value in milliseconds.
Copyright © 2016- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback