Java test client for ADF Business Components
You can generate a Java test client to test the application module and associated data model. The step for generating a Java client is simple and straightforward.
To generate a Java test client class, perform the following steps:
Right-click on the project and select New.
In the New Gallery window, select Java under the General category node and then select Class on the right side of the panel. Enter the package and class name.
In the generated Java class source, keep the cursor inside the body of the
main (String[] args)
method, type the charactersbc4jclient
, and press Ctrl + Enter. This will generate a basic skeleton to invoke the application module.Modify the
amDef
andconfig
variables to reflect the names of the application module definition and the configuration that you want to test.
The following code snippet shows a simple test client program to test an application module:
Tip
Downloading the example code
You can download the example code...