fitbook.StartListing Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitlibrary Show documentation
Show all versions of fitlibrary Show documentation
FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.
The newest version!
package fitbook;
import java.util.Arrays;
import java.util.List;
import fit.Fixture;
import fitlibrary.ArrayFixture;
import fitlibrary.ParamRowFixture;
import fitlibrary.SetFixture;
import fitlibrary.SubsetFixture;
/*
* @author Rick Mugridge on Dec 23, 2004
*
* Copyright (c) 2004 Rick Mugridge, University of Auckland, NZ
* Released under the terms of the GNU General Public License version 2 or later.
*
*/
/**
*
*/
public class StartListing extends fitlibrary.DoFixture {
private int[] ints;
public void listIs(int[] ints2) {
this.ints = ints2;
}
public Fixture orderedList() {
return new ArrayFixture(itemList());
}
public Fixture rowList() {
return new ItemRowFixture();
}
public Fixture set() {
return new SetFixture(itemList());
}
public Fixture subset() {
return new SubsetFixture(itemList());
}
public Fixture paramRowList() {
return new ParamRowFixture(itemArray(),Item.class);
}
private List