All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fitlibraryGeneric.specify.enumerator.EnumWithParse Maven / Gradle / Ivy

Go to download

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy