Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this work with getters on enums #105

Open
simonreye opened this issue Aug 3, 2017 · 1 comment
Open

Should this work with getters on enums #105

simonreye opened this issue Aug 3, 2017 · 1 comment

Comments

@simonreye
Copy link

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

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

}

@gongzelong0718
Copy link

Could you plz reformat your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants