Application Driven Testing of Drools with Fitnesse – part 1

Other Posts in this Series

Application Driven Testing of Drools with Fitnesse – part 2


Just as we can use JUnit as an integral part of Test Driven Development (TDD), we can also use Fitnesse as an integral part of Application Test Driven Development.

What does Fitnesse give us

Fitnesse provides a Wiki front end that can be used by Business Analysts and End Users (Customers) alike to provide Application Test Inputs to the System, Expected Outputs, and then execute the Java application / code you are interested in and test the actual outputs against the expected outputs.

Like JUnit, Fitnesse can run suites of tests and provides a comprehensive log of the results.

In this Post

In this first post, we will download Eclipse, and create a simple Maven project which includes the Fitnesse artifact and Drools 5.6.0 (we will move to Drools 6.0 later).  We will then launch Fitnesse from within Eclipse and see our page running.

Off We Go

Install JavaSE

Java SE can be found at  I’ve installed Java version 1.7.x, but I will configure Maven to run at version 1.6 for Drools 5.6.

Download Eclipse

Navigate to and download the Eclipse IDE for JEE Developers  for your Operating System.  I am running on OSX so have downloaded the Mac OSX 64-bit version.

Create a new Maven Project

Open Eclipse and create a new Maven Project

  • File -> New -> Project
  • Maven Project
  • Create a Simple Project
  • Group Id: com.skills421.tddrools
  • Artifact Id: FitnesseEIS

Edit the pom.xml as follows:

<project xmlns="" xmlns:xsi="" xsi:schemaLocation="">
<!-- Drools -->

<!-- Fitnesse -->

<!-- JUnit -->

<!-- Logging -->


Configure your Eclipse Installed JREs to point at the JDK

In Eclipse open Preferences -> Java -> Installed JREs

Add your JDK (if necessary) and then select it

Run Maven Update to update your JRE Version

Right click in Package Explorer -> Maven -> Update Project


Build and Launch Fitnesse from within Eclipse

Now we have created our project let’s build and run it.

Right click on the project and select Run As -> Maven Install

You should see build success in the Console.

Now let’s launch Fitnesse.

Right click on the project and select Run As -> Run Configurations…

From the popup window click the New launch configuration icon (top left)

Change the name to Fitnesse

Change the main class to fitnesseMain.FitNesseMain


click on the arguments tab and in program arguments add -p 8080


click Apply

click Run

Fitnesse will start on port 8080

Now open your browser to http://localhost:8080 and you should see the fitnesse main screen


Download the Source

The project code can be downloaded from github here



One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s