-
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.33.0
head repository: openrewrite/rewrite-testing-frameworks
compare: v3.34.0
- 13 commits
- 29 files changed
- 4 contributors
Commits on Mar 31, 2026
-
Use
JavaTemplate.apply()static methodUse this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.UseJavaTemplateStaticApply?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 54df3a9 - Browse repository at this point
Copy the full SHA 54df3a9View commit details
Commits on Apr 2, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 9fa909f - Browse repository at this point
Copy the full SHA 9fa909fView commit details -
Extend SimplifyMockitoVerifyWhenGiven for more S6068 cases (#953)
Handle additional Mockito patterns where unnecessary eq() matchers should be removed: InOrder.verify(), BDDMockito.then().should(), BDDMockito.willXxx().given(), and MockedStatic.when()/verify() with lambda bodies.
Configuration menu - View commit details
-
Copy full SHA for f47e7d8 - Browse repository at this point
Copy the full SHA f47e7d8View commit details
Commits on Apr 3, 2026
-
Add RemoveDoNothingForDefaultMocks to Mockito1to3Migration (#956)
The recipe existed but was only included in MockitoBestPractices, not in the migration chain. This caused UnnecessaryStubbingException at runtime since Mockito 3.x enables strict stubbing by default.
Configuration menu - View commit details
-
Copy full SHA for f044f96 - Browse repository at this point
Copy the full SHA f044f96View commit details -
Skip private method stubbing in PowerMockitoDoStubbingToMockito (#957)
PowerMock's string-based `when(instance, "methodName")` API supports stubbing private methods, but standard Mockito cannot. The recipe was incorrectly rewriting these to `when(instance).methodName()`, producing uncompilable code. Now detects private methods and leaves the call unchanged with a comment guiding the user to refactor.
Configuration menu - View commit details
-
Copy full SHA for 36b3640 - Browse repository at this point
Copy the full SHA 36b3640View commit details
Commits on Apr 7, 2026
-
Configuration menu - View commit details
-
Copy full SHA for a5c1ffd - Browse repository at this point
Copy the full SHA a5c1ffdView commit details -
Add ThenThrowCheckedExceptionToRuntimeException recipe (#954)
* Add ThenThrowCheckedExceptionToRuntimeException recipe Mockito 3+ validates that checked exceptions passed to `thenThrow()` are declared in the mocked method's `throws` clause. This recipe replaces undeclared checked exception class literals with `RuntimeException.class` and cleans up unused imports. * Regenerate recipes.csv * Simplify ThenThrowCheckedExceptionToRuntimeException - Replace manual method name/type checks with MethodMatcher - Use ListUtils.map instead of boolean changed + manual loop - Inline local variables and combine nested conditionals * Remove unnecessary PowerMockRunner stubs in ReplacePowerMockitoIntegrationTest The inline stub classes didn't extend Runner, causing compilation errors on CI. The real PowerMockRunner is already on the classpath via classpathFromResources, so the stubs are unnecessary. --------- Co-authored-by: Tim te Beek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c33bba2 - Browse repository at this point
Copy the full SHA c33bba2View commit details
Commits on Apr 8, 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 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 144f337 - Browse repository at this point
Copy the full SHA 144f337View commit details -
Fix AnyToNullable removing any() import when untyped any() is still u…
Configuration menu - View commit details
-
Copy full SHA for 168f433 - Browse repository at this point
Copy the full SHA 168f433View commit details -
Configuration menu - View commit details
-
Copy full SHA for dbdd9d1 - Browse repository at this point
Copy the full SHA dbdd9d1View commit details -
Add UpgradeWiremockDependencyVersion recipe (#427) (#963)
Migrate WireMock dependencies from old com.github.tomakehurst coordinates to new org.wiremock coordinates at version 3.x. Handles wiremock, wiremock-jre8, wiremock-standalone, and wiremock-jre8-standalone variants. Also hooks into JUnit5to6Migration since it already requires Java 17.
Configuration menu - View commit details
-
Copy full SHA for 03beae5 - Browse repository at this point
Copy the full SHA 03beae5View commit details -
Support intermediate methods in SimplifyChainedAssertJAssertion (#812) (
Configuration menu - View commit details
-
Copy full SHA for d08715b - Browse repository at this point
Copy the full SHA d08715bView commit details -
Add MigrateToOracleFree recipe for Testcontainers (#964)
* Add MigrateToOracleFree recipe for Testcontainers (#435) Migrate from `org.testcontainers:oracle-xe` to `org.testcontainers:oracle-free`, changing the type from `org.testcontainers.containers.OracleContainer` to `org.testcontainers.oracle.OracleContainer`. * Use dependsOn stubs instead of classpath.tsv.gz entries
Configuration menu - View commit details
-
Copy full SHA for d650cdb - Browse repository at this point
Copy the full SHA d650cdbView 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.33.0...v3.34.0