Browse Prior Art Database

An Extensible Application for Java Object Testing Disclosure Number: IPCOM000014987D
Original Publication Date: 2001-Jun-17
Included in the Prior Art Database: 2003-Jun-20

Publishing Venue



The Test Client in VisualAge for Java is a tool that lets you instantiate and test Java classes independently of the application the classes reside within. Once instantiated, users can view the methods and properties of the classes, modify them dynamically, and execute them. The value of this product to customers is that this product lets them test their Java code early in the development cycle before extensive coding of an application. With early testing, customers can study the behavior of the classes and test how that behavior is affected by a range of input data. Customers can confirm that the data returned by the classes at run time is what was expected, and the classes can handle a number of error conditions. The Test Client was designed to test Enterprise Java Beans (EJBs). An EJB is a special kind of Java bean that contains functions used by web-based applications running on an application server. Since EJBs themselves are non-visual, developers usually need to write the user interface in order to test the EJB functions. But the Test Client lets you test the EJBs without any user interface. Essentially, it is a substitute user interface. The Test Client also has an Enterprise Access Builder (EAB) version. In this version, applications using connectors can be tested without developing a user interface. The value of the Test Client is that you can test your code early in the development cycle. Function 1: Launching a Class for Examination Test Client Very easy. Right-click on the class in the Integrated Development Environment (IDE). From the pop-up menu, click Tools Enterprise Access Builder Launch Test Client . Function 2: Constructing a New Object Using an Existing Constructor (new(...)) Test Client When classes are instantiated they become objects. The new operator creates an object using the constructor it finds in the class. Creating objects and modifying them is a central concept in the Test Client. It in affect lets a user play around with a few variations on an idea. The Test Client