-
Notifications
You must be signed in to change notification settings - Fork 96
Comparing changes
Open a pull request
base repository: openrewrite/rewrite-testing-frameworks
base: v3.11.0
head repository: openrewrite/rewrite-testing-frameworks
compare: v3.13.0
- 20 commits
- 72 files changed
- 9 contributors
Commits on Jun 25, 2025
-
refactor: Extract documentation examples
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43389e6 - Browse repository at this point
Copy the full SHA 43389e6View commit details
Commits on Jun 26, 2025
-
Fix for JUnit test method throws clause preservation
When transforming `@Test(expected = SomeException.class)` to JUnit 5's `assertThrows()`, the recipe now preserves throws clauses for exceptions other than the one being tested. Changes made: - Modified `UpdateTestAnnotation` to selectively remove only the exception type being tested from the throws clause - Added logic to identify and preserve other declared exceptions in the method signature - Added test case to verify throws clauses are preserved for non-tested exceptions The fix ensures that methods declaring multiple thrown exceptions maintain proper signatures after transformation. Fixes: - #754
Configuration menu - View commit details
-
Copy full SHA for 219c043 - Browse repository at this point
Copy the full SHA 219c043View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13cf750 - Browse repository at this point
Copy the full SHA 13cf750View commit details -
Configuration menu - View commit details
-
Copy full SHA for a436737 - Browse repository at this point
Copy the full SHA a436737View commit details
Commits on Jun 27, 2025
-
refactor: Replace
Arrays.asListwithList.ofin testsUse this link to re-run the recipe: https://app.moderne.io/builder/j1pfpwnjZ?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 50758af - Browse repository at this point
Copy the full SHA 50758afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f2aa7b - Browse repository at this point
Copy the full SHA 2f2aa7bView commit details
Commits on Jul 2, 2025
-
refactor: org.openrewrite.mavencentral (#756)
Use this link to re-run the recipe: https://app.moderne.io/builder/zYwEKw0Gm?organizationId=QUxML09wZW4gU291cmNlL09wZW5SZXdyaXRl Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb6badc - Browse repository at this point
Copy the full SHA cb6badcView commit details
Commits on Jul 4, 2025
-
refactor: Update Gradle wrapper
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.gradle.UpdateGradleWrapper?organizationId=QUxML09wZW4gU291cmNlL09wZW5SZXdyaXRl#defaults%3DW3sidmFsdWUiOmZhbHNlLCJuYW1lIjoiYWRkSWZNaXNzaW5nIn1d Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c9cc2f2 - Browse repository at this point
Copy the full SHA c9cc2f2View commit details -
TestsShouldIncludeAssertions should not remove body for Kotlin (#757)
* TestsShouldIncludeAssertions should not remove body for Kotlin * Exclude kotlin tests for now with `TestsShouldIncludeAssertions`
Configuration menu - View commit details
-
Copy full SHA for 66e9375 - Browse repository at this point
Copy the full SHA 66e9375View commit details
Commits on Jul 5, 2025
-
Avoid
-SNAPSHOTversions of JUnit 5.+Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.text.FindAndReplace?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw#defaults%3DW3sibmFtZSI6ImZpbmQiLCJ2YWx1ZSI6Imp1bml0LWp1cGl0ZXItZW5naW5lOjUuKyJ9LHsibmFtZSI6InJlcGxhY2UiLCJ2YWx1ZSI6Imp1bml0LWp1cGl0ZXItZW5naW5lOjUuMTMuMyJ9LHsibmFtZSI6ImZpbGVQYXR0ZXJuIiwidmFsdWUiOiIqKi9idWlsZC5ncmFkbGUua3RzIn1d Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 88cbde4 - Browse repository at this point
Copy the full SHA 88cbde4View commit details -
Remove
@InjectMocksfrom initialized fields (#758)* Remove `@InjectMocks` from initialized fields Fixes #740 * Codify new approach based on initializer value * Apply suggestion * Remove final modifier where necessary
Configuration menu - View commit details
-
Copy full SHA for 79e3b3f - Browse repository at this point
Copy the full SHA 79e3b3fView commit details
Commits on Jul 6, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 5167a4c - Browse repository at this point
Copy the full SHA 5167a4cView commit details
Commits on Jul 8, 2025
-
refactor: OpenRewrite Recipe best practices
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.recipes.rewrite.OpenRewriteRecipeBestPractices?organizationId=QUxML09wZW4gU291cmNlL09wZW5SZXdyaXRl Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd6cda4 - Browse repository at this point
Copy the full SHA cd6cda4View commit details
Commits on Jul 9, 2025
-
refactor: Remove redundant null checks before instanceof
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.RemoveRedundantNullCheckBeforeInstanceof?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7774d58 - Browse repository at this point
Copy the full SHA 7774d58View commit details
Commits on Jul 11, 2025
-
refactor: Simplify single-element annotation
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.SimplifySingleElementAnnotation?organizationId=ODQ2MGExMTUtNDg0My00N2EwLTgzMGMtNGE1NGExMTBmZDkw Co-authored-by: Moderne <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 707ec03 - Browse repository at this point
Copy the full SHA 707ec03View commit details -
Removing
NoInitializationForInjectMockrecipe due to side effects w……hen using recipe (#765)
Configuration menu - View commit details
-
Copy full SHA for 7f2bc4b - Browse repository at this point
Copy the full SHA 7f2bc4bView commit details -
Adding functionality to
MockitoWhenOnStaticToMockStaticfor recogni……zing time where the `when` is already within a try-with-resources that can provide the `MockedStatic<T>` to be used for rewriting the `when` and making use of that scoped variable instead of writing another try-with-resources. (#766)
Configuration menu - View commit details
-
Copy full SHA for 82ffe5c - Browse repository at this point
Copy the full SHA 82ffe5cView commit details -
Inconvertible Mockito
whensituation involving lambda and static me……thod. (#763) * Showing situation where we wouldn't be able to safely convert `when(...).thenReturn(..)` to `staticMocked.when(...).thenReturn(..)` * Adding a change that would prevent it from tring to use a lambda parameter as a class, which leads to something that can't be compiled. * Update src/main/java/org/openrewrite/java/testing/mockito/MockitoWhenOnStaticToMockStatic.java --------- Co-authored-by: Sam Snyder <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5dd6582 - Browse repository at this point
Copy the full SHA 5dd6582View commit details
Commits on Jul 14, 2025
-
Changing order of
mockito-all->mockito-corechange vs `org.mock……ito:*` upgrade, and made the former upgrade to `3.x` at the same time, as there aren't aligned versions between the two. (#768)
Configuration menu - View commit details
-
Copy full SHA for 0b6f4fa - Browse repository at this point
Copy the full SHA 0b6f4faView commit details -
Fix not detecting existing useJUnitPlatform invocations which accept …
…a lambda/closure
Configuration menu - View commit details
-
Copy full SHA for 5da3346 - Browse repository at this point
Copy the full SHA 5da3346View 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.11.0...v3.13.0