Fit for Developing Software: Framework for Integrated Tests

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.

    Категории