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.11.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.12.0
Choose a head ref
  • 14 commits
  • 65 files changed
  • 6 contributors

Commits on Jun 25, 2025

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

Commits on Jun 26, 2025

  1. 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
    knutwannheden committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    219c043 View commit details
    Browse the repository at this point in the history
  2. Polish

    knutwannheden committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    13cf750 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a436737 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2025

  1. Configuration menu
    Copy the full SHA
    50758af View commit details
    Browse the repository at this point in the history
  2. Pin JUnit to 5.+

    timtebeek authored Jun 27, 2025
    Configuration menu
    Copy the full SHA
    2f2aa7b View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2025

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

Commits on Jul 4, 2025

  1. Configuration menu
    Copy the full SHA
    c9cc2f2 View commit details
    Browse the repository at this point in the history
  2. TestsShouldIncludeAssertions should not remove body for Kotlin (#757)

    * TestsShouldIncludeAssertions should not remove body for Kotlin
    
    * Exclude kotlin tests for now with `TestsShouldIncludeAssertions`
    timtebeek authored Jul 4, 2025
    Configuration menu
    Copy the full SHA
    66e9375 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2025

  1. Configuration menu
    Copy the full SHA
    88cbde4 View commit details
    Browse the repository at this point in the history
  2. Remove @InjectMocks from initialized fields (#758)

    * Remove `@InjectMocks` from initialized fields
    
    Fixes #740
    
    * Codify new approach based on initializer value
    
    * Apply suggestion
    
    * Remove final modifier where necessary
    timtebeek authored Jul 5, 2025
    Configuration menu
    Copy the full SHA
    79e3b3f View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2025

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

Commits on Jul 8, 2025

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