O'Reilly logo

Fit for Developing Software: Framework for Integrated Tests by Ward Cunningham, Rick Mugridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 25. Using Other Values in Tables

Until now, we have taken for granted that Fit will handle the values that we use in table cells. However, Fit handles only some of the standard Java types, including the ones that we have been using so far, such as String, int, and double. Now it’s time to see how to use other values in tables with Fit fixtures.

We begin with a brief discussion of how Fit handles the standard types with TypeAdapters. We then look at how fixtures can handle other value types in tables. We illustrate with an example that uses Money values.

25.1 Standard Values

When it interprets a table, a Fit fixture checks the types of the instance variables and methods involved, using reflection. For example, for each label in a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required