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.29.0
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.30.0
Choose a head ref
  • 8 commits
  • 16 files changed
  • 5 contributors

Commits on Mar 9, 2026

  1. Configuration menu
    Copy the full SHA
    6d5852e View commit details
    Browse the repository at this point in the history
  2. Use FindImports and dependency-aware framework detection in `Replac…

    …eMockitoTestExecutionListener` (#925)
    
    * Use FindImports for test framework detection in ReplaceMockitoTestExecutionListener
    
    Replace manual import loop in detectFramework() with FindImports
    search visitors for cleaner, more idiomatic framework detection.
    
    * Check JUnit 4 imports before TestNG to match original priority order
    
    * Add dependency-aware framework detection via targetFramework option
    
    Add a targetFramework @option that YAML wrapper recipes set based on
    ModuleHasDependency preconditions. Import-based detection still takes
    priority; the option is a fallback for files with no framework imports.
    
    Three YAML wrapper recipes gate on JUnit 5, JUnit 4, and TestNG
    dependencies respectively, replacing the single bare reference in
    Mockito1to3Migration.
    
    * Simplify JUnit 4 import detection to single FindImports pattern
    
    Since JUnit 5 (org.junit.jupiter..*) is matched first, any remaining
    org.junit..* import is necessarily JUnit 4.
    
    * Use `valid = {"jupiter", "junit4", "testng"}`
    
    * Use same naming in precondition guarded recipes
    
    ---------
    
    Co-authored-by: Tim te Beek <[email protected]>
    steve-aom-elliott and timtebeek authored Mar 9, 2026
    Configuration menu
    Copy the full SHA
    8654451 View commit details
    Browse the repository at this point in the history
  3. Align targetFramework switch case with @option valid values (#928)

    The switch on `targetFramework` used `"junit5"` but the `@Option`
    annotation declared valid values as `"jupiter"`, `"junit4"`, `"testng"`,
    and the YAML wrapper recipes already passed `targetFramework: jupiter`.
    This mismatch meant the Jupiter fallback path was unreachable.
    
    Regenerated recipes.csv.
    steve-aom-elliott authored Mar 9, 2026
    Configuration menu
    Copy the full SHA
    92a9ca4 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2026

  1. Configuration menu
    Copy the full SHA
    467ab04 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2026

  1. Configuration menu
    Copy the full SHA
    40bd3da View commit details
    Browse the repository at this point in the history
  2. Rename MockWebServer shutdown() to close

    Fixes #930
    timtebeek committed Mar 11, 2026
    Configuration menu
    Copy the full SHA
    08296c5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c789ee8 View commit details
    Browse the repository at this point in the history
  4. Fix JUnit5MigrationTest.addMockitoJupiterDependencyIfExtendWithPresent (

    #931)
    
    The upstream AddDependency recipe now correctly scopes onlyIfUsing checks to match the dependency's scope. Test-scoped dependencies are only added when the usage is detected in test sources, so move the test class from main sources to test sources.
    
    Co-authored-by: Tim te Beek <[email protected]>
    timtebeek and Tim te Beek authored Mar 11, 2026
    Configuration menu
    Copy the full SHA
    5a24e73 View commit details
    Browse the repository at this point in the history
Loading