Section 25.5. Exercises


25.5. Exercises

1.

Design a Fit test that makes use of a Point value in table cells, such as (100,200).

2.

Implement the fixture for this table, overriding the parse() method to handle the conversion of a String to a Point object.

3.

Decide whether the Point class defines a suitable toString() method.

4.

If not, you'll need to introduce an intermediate (adapter) class to manage the conversion of a Point to a String.

5.

In your application, now choose a class that has specialized values that would be handy to use in the cells of Fit tests. Carry out the preceding steps for your class.



    Fit for Developing Software. Framework for Integrated Tests
    Fit for Developing Software: Framework for Integrated Tests
    ISBN: 0321269349
    EAN: 2147483647
    Year: 2005
    Pages: 331

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net