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 TypeAdapter
s. 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 ...
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.