Section 25.3. Values in FitNesse and the Flow Fixtures


25.3. Values in FitNesse and the Flow Fixtures

The FitNesse version of Fit checks whether the class of the value concerned has a static method parse() that takes a String and returns an object of that class. Fit uses this method if it exists.

In that case, because class Money has the appropriate parse() method, the parse() method in Listing 25.1 is not needed. This approach is also used with the FitLibrary fixtures, as discussed in Section 28.11 on p. 245.



    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