Reputation: 10469
Studying the standard Fit fixtures types I came along the DoFixture which is provided by FitLibrary - because I need the flexible approach this fixture type offers, I downloaded the latest version (20110222) of FitLibrary and set up my environment exactly as stated in the readme.
!path fitlibrary.jar
!path fitnesse.jar
!path lib/*.jar
!define TEST_RUNNER {fitlibrary.suite.FitLibraryServer}
The consequence of this is that apparently all my tests run in something that I think they call "flow" mode, or is it their "business rules mode"?? I simply don't know.
All I know is that none of my tests work anymore. For example: I got a RowEntryFixture named ServerDeclaration
and having a test table for this fixture now results in:
Missing class or Missing method. Possibly:
* public Type getServerDeclaration() { }
* public Type serverDeclaration() { }
My question is: how do I MIX Fit table styles along with FitLibrary table styles in one test? It must be possible, as FitLibrary test table styles are often called an unofficial "add-on" to Fit!
Does anybody know how this can be achieved?? Thanks!
Upvotes: 1
Views: 2849
Reputation: 36
The problem here is that the first table, with |server declaration| is not being treated correctly as the name of a class by FitLibrary. A quick fix is to write the class name out in full: |mypackage.ServerDeclaration. I will change FitLibrary to handle this case.
Nothing special needs to be done to combine Fit and FitLibrary tables, as long as FitLibraryServer is the TEST_RUNNER, as you've defined it above. FitLibrary automatically runs Fit tables when it finds them.
Cheers, Rick
Upvotes: 2