31.2. Developing the FixtureLater in the afternoon, we got together with Emily to discuss the fixture class. She mentioned in passing, "That other table dropped out easily; no trouble. Don is entering the tests now for those tables." Emily had got the bare bones of the fixture class together, as shown in Listing 31.1.[1] However, she was unsure of the best way to hook it up to the application.
Listing 31.1. TestLate.java (version 1)public class TestLate extends fit.ColumnFixture { public float hoursLate, grace, highDemand; public boolean countGrace; public int extraHours() { return 0; } } After suggesting to Emily that she change the return value of exTRaHours() to -1, she ran Fit on it. Of course, none of the tests passed. |