fitlibraryGeneric.specify.enumerator.EnumWithParse 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 fitlibraryGeneric.specify.enumerator;
public class EnumWithParse {
private ColourEnum enumeration;
public static enum ColourEnum {
RED, GREEN, BLUE, LIGHTRED;
public static Object parse(String s) {
if (s.startsWith("l"))
return LIGHTRED;
return RED;
}
}
public ColourEnum getEnumeration() {
return enumeration;
}
public void setEnumeration(ColourEnum enumeration) {
this.enumeration = enumeration;
}
}