-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Contribute DefaultLocaleExtension and DefaultTimeZoneExtension #5142
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
@DefaultLocale and @DefaulTimezone extensions
marcphilipp
left a comment
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 this initial push! 👍
How to use JUnit's internal testkit
We just use EngineTestKit directly, without the abstraction that Pioneer has. I commented on one such test.
Why checkstyle fails just right after
spotless:applygoal was run
Checkstyle can fail even though Spotless formatted the code. Spotless is purely about formatting, while we use Checkstyle for some more semantic checks.
That ArchUnit rules are in place
What did you want to check for?
jupiter-tests/src/test/java/org/junit/jupiter/engine/extension/DefaultTimeZoneTests.java
Outdated
Show resolved
Hide resolved
...upiter-engine/src/main/java/org/junit/jupiter/engine/extension/DefaultTimeZoneExtension.java
Outdated
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/api/util/DefaultLocaleTests.java
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/api/util/DefaultTimeZoneTests.java
Show resolved
Hide resolved
...upiter-engine/src/main/java/org/junit/jupiter/engine/extension/DefaultTimeZoneExtension.java
Outdated
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/engine/extension/DefaultTimeZoneTests.java
Outdated
Show resolved
Hide resolved
@DefaultLocale and @DefaulTimezone extensions@DefaultLocale and @DefaultTimeZone extensions
|
Thank you for your feedback, I think (hope) I applied all of it correctly. I find the testkit methods very confusing and verbose, but I guess that's a thing how used you are to them.
In general I'm done with most parts, I now have to figure out which are the correct |
...-jupiter-engine/src/main/java/org/junit/jupiter/engine/extension/DefaultLocaleExtension.java
Outdated
Show resolved
Hide resolved
dda60f6 to
14a75bc
Compare
|
To keep you up to date: |
Hmm, I hadn't thought of that. We should probably move |
Actually, I've just done this on main so it should suffice for you to rebase this PR. |
Great, I will work later this day / tomorrow |
cada4ef to
9d1e8c1
Compare
|
I give up. After wasting another few hours for getting those tests green which check module system files that do nowhere exists and complain about modules would not exists while the compiler says they do. |
...ooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java
Outdated
Show resolved
Hide resolved
3e4c8d9 to
9a7a7fa
Compare
@DefaultLocale and @DefaultTimeZone extensions|
Thanks @sormuras for pointing out the obvious 🤦♂️ When you don't see the forest because of trees... |
marcphilipp
left a comment
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.
Di you have time to make the requested changes? If not, please let me know and I can take over.
junit-jupiter-api/src/main/java/org/junit/jupiter/api/timezone/DefaultTimeZone.java
Outdated
Show resolved
Hide resolved
jupiter-tests/src/test/java/org/junit/jupiter/testkit/ExecutionResults.java
Outdated
Show resolved
Hide resolved
372ebfa to
f106f36
Compare
JUnit Pioneer is happy to contribute its DefaultLocaleExtension and DefaultTimeZoneExtension to JUnit Jupiter. closes junit-team#4727
f106f36 to
e079fac
Compare
✅ All tests passed ✅🏷️ Commit: 9888b92 |
marcphilipp
left a comment
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 all the hard work! I polished the documentation a bit and pushed two commits.
JUnit Pioneer is happy to contribute its DefaultLocaleExtension and DefaultTimeZoneExtension to JUnit Jupiter.
closes #4727
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations