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

Quarter constructor does not validate quarter and year parameter ranges. #400

Open
El-Toham opened this issue Apr 28, 2024 · 0 comments
Open

Comments

@El-Toham
Copy link

Documentation: https://www.jfree.org/jfreechart/javadoc/org/jfree/data/time/Quarter.html#%3Cinit%3E(int,int)
Version: 1.5.4
Tested by: JUnit


| 1) Test for the quarter parameter: |


@test(expected = IllegalArgumentException.class)
public void quarterShouldInRange(){
Quarter quarter = new Quarter(5, 2024);
}


| 2) Test for the year parameter: |


@test(expected = IllegalArgumentException.class)
public void yearShouldInRange(){
Quarter quarter = new Quarter(1, 19999);
}

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

1 participant