Chapter 22. Action Fixtures

An ActionFixture table tests that a series of actions carried out on an application work as expected. An ActionFixture fixture starts a named class by creating the actor, an object of that class. Subsequent actions are made through method calls on that separate actor object. This chapter shows the fixtures for the Fit tables introduced in Chapter 4.

22.1 Buying Items

Consider again the summing line items tests from Section 4.1 on p. 23, as shown in Figure 22.1.

Figure 22.1 Fit Table for Testing Line Items

Image

When it runs this table, Fit creates an object of the ActionFixture class and calls its method doTable() ...

Get Fit for Developing Software: Framework for Integrated Tests now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.