Java Reference
In-Depth Information
Testing a Windowed Application
The fifth step in the development cycle is to test the program, find any errors,
and correct them until the program is error-free. While compiling the program,
the Java compiler checks for some semantic and syntax errors; it is in running
the program that programmers may find it hard to detect logic errors. When
programs have many variables, inputs, and limit restrictions, such as a maximum
number of entries, you must enter data of many different types, including incor-
rect data, and enter a sufficient number of entries to test any maximum values.
Compiling and Running the Reservations Application
The following steps compile and run the Reservations program. Once the
program is running, sample data — such as the data listed in Table 5-14 —
should be used to test the application.
Table 5-14
Sample Data for the Reservations Application
NAME
PHONE NUMBER
NUMBER OF GUESTS
SMOKING PREFERENCE
Bond
(303) 555-3760
10
N
Louks
(303) 555-2227
9
N
Thomas
(303) 555-8625
20
S
Gupta
(303) 555-5089
8
N
Amir
(303) 555-1140
14
N
Pipina
(303) 555-8606
12
N
Mitchell
(303) 555-9876
16
N
 
Search WWH ::




Custom Search