A P P E N D I X A

Test API

The following is the Java ME technology-specific API that every test developer must know:

■Test

■Status

■MultiTest

■J2MEDistributedTest

■J2SEDistributedTest

■DistribInteractiveTest

■OTATest

Test

Interface name: com.sun.tck.cldc.lib.Test

This is a Java ME technology version of the standard harness Test interface. This interface is implemented by all Java ME technology tests. Each test must define the run method as follows:

CODE EXAMPLE A-1 run Method

public Status run(String[] args, PrintStream log, PrintStream ref)

77

Page 97
Image 97
Sun Microsystems 1.2 manual Test API