-
Notifications
You must be signed in to change notification settings - Fork 102
Comparing changes
Open a pull request
base repository: openrewrite/rewrite-testing-frameworks
base: v3.35.2
head repository: openrewrite/rewrite-testing-frameworks
compare: v3.35.3
- 12 commits
- 19 files changed
- 4 contributors
Commits on Apr 28, 2026
-
OpenRewrite recipe best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for de80c8f - Browse repository at this point
Copy the full SHA de80c8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56f133a - Browse repository at this point
Copy the full SHA 56f133aView commit details
Commits on Apr 29, 2026
-
OpenRewrite recipe best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
Configuration menu - View commit details
-
Copy full SHA for 9bd6b9f - Browse repository at this point
Copy the full SHA 9bd6b9fView commit details -
Preserve mockStatic when returned from helper methods (#979)
The "remove bare mockStatic" guard didn't recognize J.Return as a valid ancestor, so mockStatic(X.class) returned from a helper was nullified — collapsing the return statement to `return;` and breaking compilation against the helper's MockedStatic<X> return type.
Configuration menu - View commit details
-
Copy full SHA for c1bf1c1 - Browse repository at this point
Copy the full SHA c1bf1c1View commit details -
Upgrade junit-bom to 6.x in JUnit 5 to 6 migration (#978)
* Upgrade junit-bom to 6.x in JUnit 5 to 6 migration The JUnit5to6Migration recipe upgraded individual junit-jupiter artifacts but left the org.junit:junit-bom import managed in dependencyManagement on 5.x, including when its version was referenced through a property. * Use recipeFromResources in JUnit5to6MigrationTest * Return assertion actual() instead of explicit return
Configuration menu - View commit details
-
Copy full SHA for a298e6b - Browse repository at this point
Copy the full SHA a298e6bView commit details -
Tighten PowerMockitoMockStaticToMockito precondition (#981)
Restrict to files that actually import PowerMockito, so plain Mockito-only tests no longer run through PowerMockito conversion logic. Fixes #980
Configuration menu - View commit details
-
Copy full SHA for f3a0fb9 - Browse repository at this point
Copy the full SHA f3a0fb9View commit details
Commits on May 1, 2026
-
Fix AssertTrueInstanceofToAssertInstanceOf static import (#984)
Switch the JavaTemplate to take `Class<?>` directly and construct a proper class literal so the resulting `assertInstanceOf` invocation carries type info, allowing `maybeAddImport` to add the missing static import.
Configuration menu - View commit details
-
Copy full SHA for 6748265 - Browse repository at this point
Copy the full SHA 6748265View commit details -
Fix
ClassCastExceptionfor `@PrepareForTest(fullyQualifiedNames = "……...")` (#983) * Guard PrepareForTest fullyQualifiedNames cast against ClassCastException Add an `instanceof J.NewArray` check before casting the assignment value in `extractPrepareForTestClasses`, so `@PrepareForTest(fullyQualifiedNames = "...")` with a string literal no longer crashes the recipe. * Leave @PrepareForTest unchanged when no class references can be extracted Filter the `J.NewArray` initializers to class references only and skip the annotation-removal scheduling when nothing was extracted, so usages such as `@PrepareForTest(fullyQualifiedNames = "...")` or `@PrepareForTest(fullyQualifiedNames = {"a","b"})` leave the source intact instead of stripping an annotation the recipe cannot migrate.
Configuration menu - View commit details
-
Copy full SHA for 41ace45 - Browse repository at this point
Copy the full SHA 41ace45View commit details
Commits on May 4, 2026
-
Preserve
doNothing()stubbings usingArgumentCaptor.capture()(#988)The captor registers a matcher used to capture values during later real invocations; removing the stubbing breaks the capture.
Configuration menu - View commit details
-
Copy full SHA for b06f6a4 - Browse repository at this point
Copy the full SHA b06f6a4View commit details -
Document strictness implication of
RemoveInitMocksIfRunnersSpecified(#990) Removing an explicit `openMocks(this)` call shifts `@Mock` fields onto the extension/runner's strict mocking session, which may surface `UnnecessaryStubbingException` for tests that previously benefited from the lenient mocks created by `openMocks`. Mention the opt-out via `@MockitoSettings(strictness = Strictness.LENIENT)`. Refs #987
Configuration menu - View commit details
-
Copy full SHA for b23a699 - Browse repository at this point
Copy the full SHA b23a699View commit details
Commits on May 5, 2026
-
Support
textBlockattribute inCsvSourceToValueSource(#989)* Support `textBlock` attribute in `CsvSourceToValueSource` Resolves #985 * Skip textBlock conversion when values contain single quotes Single quote is CsvSource's default quote character, so converting 'apple' to a ValueSource string literal would change the parsed value. * Use `StringUtils.containsWhitespace` and inline trivial checks Replaces three local helpers with `StringUtils.containsWhitespace` for the whitespace check and inline `String#indexOf` calls for the single- character checks.
Configuration menu - View commit details
-
Copy full SHA for 9104c05 - Browse repository at this point
Copy the full SHA 9104c05View commit details -
Skip primitive comparisons in
UseAssertSame(#992)Converting `assertTrue(a == b)` to `assertSame(a, b)` changes value equality into reference equality on the boxed types, which fails for mixed primitive types like `123L == 123`.
Configuration menu - View commit details
-
Copy full SHA for 22b9122 - Browse repository at this point
Copy the full SHA 22b9122View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.35.2...v3.35.3