-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Theories: only get all data points from enum and boolean types if the… #1651
base: main
Are you sure you want to change the base?
Conversation
…re is no @FromDataPoints annotation, or the named data points represent a non-empty set of the same type. Fixes junit-team#1648
Not familiar with the pull request flow. Do I now have to do something to merge this, or is that something somebody on the project will do? |
src/main/java/org/junit/experimental/theories/internal/Assignments.java
Outdated
Show resolved
Hide resolved
The JUnit team will merge it when two of us have approved the PR. |
…ents.java Co-Authored-By: Stefan Birkner <github@stefan-birkner.de>
src/main/java/org/junit/experimental/theories/internal/Assignments.java
Outdated
Show resolved
Hide resolved
} else if (paramType.equals(Boolean.class) || paramType.equals(boolean.class)) { | ||
return new BooleanSupplier().getValueSources(unassigned); | ||
|
||
FromDataPoints fromDataPoints = unassigned.getAnnotation(FromDataPoints.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Shouldn't this check for ParametersSuppliedBy
or, alternatively, shouldn't SpecificDataPointsSupplier
throw an exception if it couldn't find a matching field?
I agree with @marcphilipp that it should be part of SpecificDataPointsSupplier
Then please can you fix this yourselves? Sorry, I just don't have enough knowledge of the code base. |
…re is no @FromDataPoints annotation, or the named data points represent a non-empty set of the same type.
Fixes #1648