Java Reference
In-Depth Information
phase # 1; break ;
}
} catch (InterruptedException ioe)
{ ioe.printStackTrace(); }
}
// the GUI paints the car in the position corresponding to
// the value of "distance"
private void goTo( int pos) {
while (distance < pos) {
distance !# 10;
this .repaint();
try {
thread.sleep(100);
} catch (InterruptedException ie)
{ ioe.printStackTrace(); }
}
}}
11.5.4
Test
The test case consists of the visualization of the access lane in the graphical
user interface (see Figure 11.10). The test should verify the correct
Figure 11.10 The sequence of snapshots that show the car proceeding along the access lane
 
Search WWH ::




Custom Search