I have an enum list of all the states in the US as following:
public enum State { AL, AK, AZ, AR, ..., WY }
and in my test file, I will rea
try this
public void setState(String s){ state = State.valueOf(s); }
You might want to handle the IllegalArgumentException that may be thrown if "s" value doesn't match any "State"