
The client test component must use the send and handleMessage methods in the J2MEDistributedTest class to send and receive messages to or from the other named components of the distributed test.
Remote Test Component
The remote test component of the distributed test must extend the com.sun.tck.j2me.services.messagingService.J2SEDistributedTest class and, to send messages to the client component of the distributed test, invoke the send method in the DistributedTest.
Test Description for Distributed Tests
The test description file for the distributed test must contain the distributed keyword and the remote attribute. The test description might also include additional attributes such as the remoteSource and executeArgs attributes.
Required Distributed Test Keyword
The distributed keyword identifies the type of test to the harness and enables test selection by the user. If more than one keyword is specified, the names must be separated by white space. The following is an example of the distributed keyword entry that must be added to the test description file.
CODE EXAMPLE 4-1 Required Distributed Test Keyword
<TR>
<TD SCOPE="row"> <B>keywords</B> </TD> <TD> distributed </TD>
</TR>
remote Attribute
The remote attribute contains the execution command for the remote test components of the distributed test group. The values for these attributes are exported from the configuration interview and defined in the test environment file.