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
to compare enum to string
for (Object s : State.values()) { if (theString.equals(s.toString())) { // theString is equal State object } }