Section 37.8. Exercises


37.8. Exercises

1.

Look at the code for ActionFixture, which is quite short. Follow through the code to see what happens when an enter action is carried out.

2.

What happens if the corresponding method in the actor doesn't exist?

3.

What happens if the actor is not yet start ed?

4.

Note how ActionFixture calls the action methods, using reflection. Consider how you would subclass ActionFixture to provide other action methods, without changing ActionFixture itself.

5.

Look at the code for ColumnFixture and note how the method bind() is called from doRows() with the header row. Note how a TypeAdapter is created for each column of the header row and is reused for each test row.



    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