Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openrewrite/rewrite-testing-frameworks
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.35.2
Choose a base ref
...
head repository: openrewrite/rewrite-testing-frameworks
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.35.3
Choose a head ref
  • 12 commits
  • 19 files changed
  • 4 contributors

Commits on Apr 28, 2026

  1. Configuration menu
    Copy the full SHA
    de80c8f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    56f133a View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2026

  1. Configuration menu
    Copy the full SHA
    9bd6b9f View commit details
    Browse the repository at this point in the history
  2. 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.
    timtebeek authored Apr 29, 2026
    Configuration menu
    Copy the full SHA
    c1bf1c1 View commit details
    Browse the repository at this point in the history
  3. 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
    timtebeek authored Apr 29, 2026
    Configuration menu
    Copy the full SHA
    a298e6b View commit details
    Browse the repository at this point in the history
  4. 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
    timtebeek authored Apr 29, 2026
    Configuration menu
    Copy the full SHA
    f3a0fb9 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2026

  1. 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.
    timtebeek authored May 1, 2026
    Configuration menu
    Copy the full SHA
    6748265 View commit details
    Browse the repository at this point in the history
  2. Fix ClassCastException for `@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.
    timtebeek authored May 1, 2026
    Configuration menu
    Copy the full SHA
    41ace45 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2026

  1. Preserve doNothing() stubbings using ArgumentCaptor.capture() (#988)

    The captor registers a matcher used to capture values during later
    real invocations; removing the stubbing breaks the capture.
    timtebeek authored May 4, 2026
    Configuration menu
    Copy the full SHA
    b06f6a4 View commit details
    Browse the repository at this point in the history
  2. 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
    timtebeek authored May 4, 2026
    Configuration menu
    Copy the full SHA
    b23a699 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2026

  1. Support textBlock attribute in CsvSourceToValueSource (#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.
    timtebeek authored May 5, 2026
    Configuration menu
    Copy the full SHA
    9104c05 View commit details
    Browse the repository at this point in the history
  2. 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`.
    timtebeek authored May 5, 2026
    Configuration menu
    Copy the full SHA
    22b9122 View commit details
    Browse the repository at this point in the history
Loading