fitlibraryGeneric.specify.DomainFixtureUnderTest 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!
/*
* Copyright (c) 2006 Rick Mugridge, www.RimuResearch.com
* Released under the terms of the GNU General Public License version 2 or later.
*/
package fitlibraryGeneric.specify;
import fitlibrary.DomainFixture;
import fitlibraryGeneric.specify.PrePopulated.Colour;
public class DomainFixtureUnderTest extends DomainFixture {
public DomainFixtureUnderTest() {
super(new PrePopulated());
}
public Colour colourCount(String colour, int count) {
Colour colour2 = new Colour(colour);
colour2.setCount(count);
return colour2;
}
public Class> concreteClassOfInterfaceType(String typeName) {
if ("concrete one".equals(typeName))
return ConcreteClassOne.class;
return null;
}
}