Browse Prior Art Database

A Unit-test Environment for Enterprise Java Beans

IP.com Disclosure Number: IPCOM000014141D
Original Publication Date: 1999-Dec-01
Included in the Prior Art Database: 2003-Jun-19
Document File: 4 page(s) / 64K

Publishing Venue

IBM

Related People

Dave Stokes: AUTHOR [+4]

Abstract

Unit-testing Enterprise Java Beans (EJBs) can be a time-consuming task. An EJB instance is deployed and managed within an EJB server process separate from the client which accesses them. Before unit-testing an EJB, the user must deploy the EJB to an EJB server. Accessing the EJB instance requires that the user write a client program which will obtain a reference to a name server, locate the EJB server of interest, obtain a reference to the EJB instance, and then execute the EJB methods to be unit-tested. The user must also update the client program every time that the EJB method signatures change.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 53% of the total text.

Page 1 of 4

A Unit-test Environment for Enterprise Java Beans

     Unit-testing Enterprise Java Beans (EJBs) can be a time-consuming task. An EJB instance is deployed and managed within an EJB server process separate from the client which accesses them. Before unit-testing an EJB, the user must deploy the EJB to an EJB server. Accessing the EJB instance requires that the user write a client program which will obtain a reference to a name server, locate the EJB server of interest, obtain a reference to the EJB instance, and then execute the EJB methods to be unit-tested. The user must also update the client program every time that the EJB method signatures change.

     This disclosure describes a unit-test environment that enables a user to quickly and easily deploy an EJB to an EJB server and unit-test the EJB methods without having to create a client application.

     The unit-test environment operates within the VisualAge for Java Integrated Development Environment. Following creation of EJBs, the user may select an EJB group to be added to the Server Configuration page:

This page allows the user to start and stop name services (Location Service Daemon and Persistent Name Server) and an EJB Server. When the EJB server is started, all the beans associated with it (those in the left-hand pane) are automatically deployed. The unit-test environment provides a mechanism to allow the user to generate a client program, called the Test Client, to perform unit-testing. The user can now select an EJB from the left-hand pane and launch the Test Client program:

1

[This page contains 2 pictures or other non-text objects]

Page 2 of 4

The first page on the Test Client allows the user to establish a connection to the name server by pressing the...