background image
<< The Query Builder | EJB TestScripts >>
<< The Query Builder | EJB TestScripts >>

Part 3. Testing Enterprise JavaBeans

29
3
Testing Enterprise
JavaBeans
This section contains the information you need to use QualityArchitect to test
Enterprise JavaBeans (EJBs).
Topics include:
s
Overview
s
Requirements for EJB testing
s
The Rational Bank Account Sample Application
s
Reverse engineering a deployed EJB into Rational Rose
s
Generating test assets
s
Importing test assets into your IDE
s
Deploying stubs to a WebLogic application server
s
Deploying stubs to the Sun J2EE Reference Server
s
Executing test scripts
s
Using EJB scenario tests to test transactions
s
Using the Java Query Builder to add database verification points
s
Using the EJB Session Recorder
Overview
This section provides a brief overview of EJB development and test.
For each EJB that you develop, you must define two interfaces and either one or two
classes--the home interface, the remote interface, the implementation class, and the
primary key class.
s
The remote interface defines all of the bean's business methods.
s
The home interface defines lifestyle methods for the bean--that is, methods for
creating, removing, and finding beans.