Chapter 3 - Testing Enterprise JavaBeans
The implementation or bean class implements the business methods defined by the
The primary key class provides a pointer into a database. Only entity beans require a
Because client applications interact directly with the home and remote interfaces and
not with the implementation class, and because test scripts emulate client
applications, EJB testing needs to test only the methods defined in the remote and
All test scripts that are generated or constructed manually extend
, an abstract class that contains the code
necessary to connect to a project, initialize log information, and look up the name of
All EJB test scripts that extend the
class must implement a
method and a
method is the entry point for the class.
method is the entry point for the testing code.
all of your test logic. All calls to other test scripts must reside within
In addition, all EJB test scripts must call
initializes logging and other test services and should
be the first method called in
(within a try block).
turns off logging, writes the log file, and performs
various cleanup functions and should be the last method called in
Packages Imported Into EJB Test Scripts
EJB test scripts must also import the following packages: