WritingFixtures

Here's the code for the example table:
DiscountGroupsSetUp
future valuemax balancemin purchasediscount %
low0.000.000
medium0.00500.005

public class DiscountGroupsSetUp extends fit.SetUpFixture {
    DiscountApplication app = new DiscountApplication();
    public void futureValueMaxBalanceMinPurchaseDiscountPercent(
            String futureValue, double maxBalance, double minPurchase, 
            double discountPercent) {
        app.addDiscountGroup(futureValue,maxBalance,
                minPurchase,discountPercent);
    }
}


For each row of the table, the method futureValueMaxBalanceMinPurchaseDiscountPercent() is called with each of the values.

In General