Java Reference
In-Depth Information
Testing the StockTrackerDB Data Access Class
Once all source code files are compiled, the Stock Tracker application
may be tested, using the StockTrackerDB data access class to manipulate the
StockTracker database. Table 11-8 lists the various stocks that are to be entered
as test data for the application.
Table 11-8
Stock Symbols and Descriptions
STOCK SYMBOL
STOCK DESCRIPTION
msft
Microsoft Corporation
Orcl
Oracle Corporation
Dell
Dell Computer Corporation
The following steps use the Stock Tracker application to test the
StockTrackerDB data access class.
To Test the StockTrackerDB Data Access Class
1. Press CTRL + 2 to run the STLogon class. When the Stock Tracker Log on
window opens, type admin01 in the User ID text box and then type
admin01 in the Password text box.
The program opens the Log on window of the Stock Tracker application
(Figure 11-57). The password text appears as asterisks. Because Password
objects are used, all of the rules established in the Password class apply to
passwords entered in this application.
Stock Tracker Log
on window
User ID text box
Password text box
Log on
button
FIGURE 11-57
2. Click the Log on button.
The Stock Tracker application window opens (Figure 11-58). Because the
initial user, Default Admin, was added as an administrative user, the buttons
for user maintenance are displayed.
 
Search WWH ::




Custom Search