Created
March 23, 2023 17:35
-
-
Save eliasnogueira/b2f2fed37d7b15fcd2e37064aa23328f to your computer and use it in GitHub Desktop.
JUnit 5 - When to use @valuesource: code example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Example { | |
| private Boolean isAgeValid(int age) { | |
| return age >= 18 && age <= 30 ? Boolean.TRUE : Boolean.FALSE; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment