Skip to content

Conversation

@Bukama
Copy link
Contributor

@Bukama Bukama commented Nov 7, 2025

This is a first draft (cause I'm getting tired and will pause for today) of passing the @DefaultLocale and @DefaultTimezone extensions to JUnit.

Points I have to check (feel free to gimme some hints)

  • How to use JUnits internal testkit
  • Why checkstyle fails just right after spotless:apply goal was run
  • That ArchUnit rules are in place

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@sbrannen sbrannen linked an issue Nov 8, 2025 that may be closed by this pull request
@sbrannen sbrannen changed the title Initial draft for providing DefaultLocale and DefaulTimezone extensions Initial draft for providing @DefaultLocale and @DefaulTimezone extensions Nov 8, 2025
Copy link
Member

@marcphilipp marcphilipp left a 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:apply goal 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?

@marcphilipp marcphilipp changed the title Initial draft for providing @DefaultLocale and @DefaulTimezone extensions Initial draft for providing @DefaultLocale and @DefaultTimeZone extensions Nov 8, 2025
@Bukama
Copy link
Contributor Author

Bukama commented Nov 9, 2025

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.

What did you want to check for?
Nothing, I saw that I have violations against ArchUnit's rules, but was too tired to check which I violate (turned out it was the missing @API annotations.

In general I'm done with most parts, I now have to figure out which are the correct findAnnotation methods in JUpiter to match those of Pioneer. Especially those with nested and class level ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support set / reset time zone and locale during test execution

3 participants