-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
JUnit 5 Theories #1415
Closed
Closed
JUnit 5 Theories #1415
Conversation
This file contains 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
This version is missing tests and may need to have TheoryParam removed before the final version, but it adds the basic functionality and layout.
TheoryParam removed due to no longer being necessary. Well-known type support encapsulated for ease of maintenance.
Removes the need to pass and implied reference to "this" inside the constructor of TheoryInvocationContext when creating the failure message fixer.
Also includes misc cleanup for tests.
These aren't needed, since annotations can't have null values
Removes the need to pass and implied reference to "this" inside the constructor of TheoryInvocationContext when creating the failure message fixer.
Also includes misc cleanup for tests.
These aren't needed, since annotations can't have null values
# Conflicts: # junit-jupiter-theories/junit-jupiter-theories.gradle
PR change list seems to have been corrupted during a rebase (probably user error on my part). Closing and re-opening PR to fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Adds theories, in a form similar to JUnit 4's Theories. This will close ticket #395.
Substantial changes from JUnit 4:
ArgumentsSuppliedBy
meta-annotation. This ties the annotation to a supplier classTheoryArgumentSupplier
(or extendsAbstractTheoryArgumentSupplier
for common use cases). This class reads the annotation and produces the corresponding data pointsA few (very rough) examples can be found in:
junit-jupiter-theories/src/test/java/org/junit/jupiter/theories/TheoriesTestCase.java
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations