32.3. The FixturesThe fixture DoRentEze that Emily wrote for Figure 32.1 is shown in Listing 32.1. This fixture runs the GUI by constructing an AdminFrame, which is the Java Swing JFrame for the simple mockup. This GUI is passed to a RentEzeUiAdapter; this adapter [GHJV95] is responsible for carrying out the operations on the GUI. DoRentEze defines two methods, corresponding to the actions in the first rows of the second and third tables in Figure 32.1. The setUp() method returns a SetUpFixture fixture object[2] to set up the rental item data. The rentalItems() method returns a SetFixture with the actual collection of rental items from the system under test.
Listing 32.1. DoRentEze.java
|
Saturday, November 21, 2009
Section 32.3. The Fixtures
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment