Hi,
I managed to switch from plain dbfit to more current versions of fitnesse + FitLibrary + FitLibraryWeb. It got me some time to get all the pieces working together so here I'm sharing how it worked for me.
1) Setup fitnesse.
- I got current source code from github
- Compiled the source (with JDK 7 needs trivial patching of 3 unit tests; with JDK 6 compiles out of the box): ant release_jar
- Copy fitnesse-standalone.jar (and rename to fitnesse.jar) to a folder: cp fitnesse-standalone.jar $FITNESSE_HOME/fitnesse.jar
2) Setup FitnesseLibrary - downloaded current version (2.0) - copy content of fitnesse folder to $FITNESSE_HOME
3) Setup FitnesseLibraryWeb - same as above: download, unzip, copy content of fitnesse folder to $FITNESSE_HOME
4) Since I'm using recent versions of Oracle and Java - within lib replace ojdbc14.jar with current version of ojdbc6.jar (Thus I'm not experiencing problems with Dates holding time information)
5) Fire fitnesse - the startup script is a standard one - startFitnesse.sh:
#!/bin/sh
ROOT_DIR=`dirname $0`
cd ${ROOT_DIR}
java -jar fitnesse.jar -p 8980 -e 0 $1 $2 $3 $4 $5
# It's useful to run it with -d /target/folder. If you wish to benefit from new fitnesse features - it makes sense to point it to empty target first and sync your existing tests on top of it later.
6) In the content of my Suite I have following:
!path fitlibrary-2.0.jar
!path fitnesse.jar
!path lib/*.jar
!define TEST_RUNNER {fitlibrary.suite.FitLibraryServer}
(Probably would work if all jars are bunched in lib but for now I left fitnesse and fitlibrary outside since seems that was the default. The TEST_RUNNER part is critical to get things working).
7) In the SetUp of my Suite I have this:
!|fitlibrary.database.Oracle|
!|ConnectUsingFile|TestDBConnection.properties|
And all the rest works as it used to be in the standalone dbfit.
8) I have a "green" DummyTest like that:
!|Query| select 'test' as x from dual|
|x|
|test|
Regards,
Yavor