Table of Contents

Fit - Column Fixture

About

ColumnFixture maps table columns directly to:

of the fixture class.

It is very useful for repetitive verification (as parameterized test) if the same test needs to be repeated for different combinations of input arguments.

Similar to Slim - Decision Table (test case as a row)

Format

Example

Doc

!|info.fitnesse.fixturegallery.ColumnFixtureTest|
|firstPart|secondPart|together?|totalLength?|
|Hello|World|Hello, World|10|
|Houston|We Have a Problem|Houston, We Have a Problem|24|

where:

|Hello|World|Hello, World|10|
|Houston|We Have a Problem|Houston, We Have a Problem|24|

Example of test class:

package info.fitnesse.fixturegallery;

import fit.ColumnFixture;

public class ColumnFixtureTest extends ColumnFixture {
	public String firstPart;
	public String secondPart;
	private int length;
	public String together(){
		length=firstPart.length()+secondPart.length();
		return firstPart+ ", "+secondPart;
	}
	public int totalLength(){
		return length;
	}
}

Others

Documentation / Reference