You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}
}
The text was updated successfully, but these errors were encountered:
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 );
}
The text was updated successfully, but these errors were encountered: