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