Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Created March 23, 2023 17:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save eliasnogueira/b2f2fed37d7b15fcd2e37064aa23328f to your computer and use it in GitHub Desktop.
JUnit 5 - When to use @valuesource: code example
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