-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Inherit @TestMethodOrder
and introduce Default
orderer implementations
#4842
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
Conversation
* Use a cache for the `DescriptorWrapperOrderer` in both cases * Include test class in warning messages in both cases
ec1f1d7
to
365bfa0
Compare
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.
Implementation, refactoring, and tests look good to me.
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.
Thanks for working on this!
It looks very good.
Although I reviewed the entire PR, I did not spend a lot of time reviewing the interim refactoring commit. Thus, I assume the refactoring part is "good to go" as well.
Otherwise, I've only requested a few minor changes to Javadoc and tests.
junit-jupiter-api/src/main/java/org/junit/jupiter/api/ClassOrderer.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/MethodOrderer.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/ClassOrderer.java
Outdated
Show resolved
Hide resolved
junit-jupiter-api/src/main/java/org/junit/jupiter/api/MethodOrderer.java
Outdated
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/engine/extension/OrderedClassTests.java
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/engine/extension/OrderedMethodTests.java
Outdated
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/engine/extension/OrderedMethodTests.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Sam Brannen <104798+sbrannen@users.noreply.github.com>
@TestMethodOrder
to enclosed@Nested
classesMethodOrderer.Default
for reverting back to default orderingClassOrderer.Default
for reverting back to default orderingResolves #4731.
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations