private final int priority;
private final Color foregroundColour;
private final Color backgroundColour;
private EventCategory( Color foregroundColour, Color backgroundColour, int priority )
{
this.priority = priority;
this.foregroundColour = foregroundColour;
this.backgroundColour = backgroundColour;
}
public int getPriority()
{
return priority;
}
public Color getForegroundColour()
{
return foregroundColour;
}
public Color getBackgroundColour()
{
return backgroundColour;
}
Occasionally I have enums that have getters. I tried using openpojo to test the enum but it didn't seem to run any tests over the getters.
An example enum is:
public enum EventCategory { ADVISORY( Color.BLACK, Color.BLUE, 1 ), WARNING( Color.BLACK, Color.YELLOW, 2 ), ALARM( Color.WHITE, Color.RED, 3 );
}