Repository navigation
Correct shared JUnit annotations and rule type matching - #1191
Open
hugoncosta wants to merge 1 commit into
Open
hugoncosta wants to merge 1 commit into
hugoncosta wants to merge 1 commit into
Conversation
hugoncosta
marked this pull request as ready for review
October 14, 2026 12:11
This was referenced Oct 24, 2026
Drop explicit zero timeouts, use a resolvable MethodOrderer.MethodName import, register static WireMock class rules, and retain simple nested category names. Use named variable types for rule matching, including inferred declarations. Keep these Java-affecting fixes separate from Kotlin source migration.
timtebeek
force-pushed
the
fix/junit-shared-annotations-and-rules
branch
from
November 18, 2026 23:00
979afb1 to
d5fdb18
Compare
This file contains hidden or 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
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.
What's changed?
Extract the shared Java annotation and rule corrections from #1189.
@Timeoutfor an explicit JUnit 4timeout = 0.MethodOrderer.MethodNametemplate import and retain the generated import.@ClassRulefields to static registered extensions and keep renamed port method types consistent.Add named regression cases for zero timeout, static WireMock registration and nested category names. No new Kotlin visitor, dependency, public recipe or test harness is included.
What's your motivation?
These shared corrections affect Java recipes and deserve a review separate from Kotlin structural migrations, as requested in #1189.
Verification
main, independent of the setup PR.git diff --checkpasses.Local verification used public build plugin 2.23.0 / Rewrite 8.90.4 through an uncommitted build override. The repository's default build still requires CI verification.
Related: #1188, #1189. This is the second of the planned smaller contributions; it does not close the Kotlin parity issue.
Companion split: #1190. Both PRs are independently based on upstream
main.