Skip to content
kia edited this page Jul 6, 2012 · 11 revisions

Welcome to the FitGoodies wiki!

Fit (Framework for Integration Tests) http://fit.c2.com/ written by Ward Cunningham is a Java framework which enables you to write documents that can directly act as automated tests. Your expectations written in table form are checked against the outcome of your system under test.

FitGoodies is an extension library for Fit. It extends Fit by many features such as checking database tables, e-mail content and file content. FitGoodies is actually more than that.

Look at this example:

de.cologneintelligence.fitgoodies.database.SetupFixture
user ${System.getProperty(jdbc.user)}
password ${System.getProperty(jdbc.password)}
provider com.mysql.jdbc.Driver
connectionString ${System.getProperty(jdbc.url)}

With ${System.getProperty(jdbc.url)} you have access to the system parameter jdbc.url .

Now you can write your expectations on table STORE

TableFixture table=STORE
ISBN AUTHOR TITLE PRICE
1930110995 Vincent Massol, Ted Husted JUnit in Action 26.37
193239480X Steve Loughran, Erik Hatcher Ant in Action 31.49

the output:

output

First steps ...

Clone this wiki locally