Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify toString assertion #554

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Simplify toString assertion #554

merged 3 commits into from
Jul 24, 2024

Commits on Jul 24, 2024

  1. Simplify toString assertion

    Instead of using:
    ```
    assertThat(cat.toString()).isEqualTo("animal");
    ```
    
    Could use:
    ```
    assertThat(cat).hasToString("animal");
    ```
    
    Signed-off-by: Marvin Froeder <velo.br@gmail.com>
    velo committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    415a446 View commit details
    Browse the repository at this point in the history
  2. Update src/test/java/org/openrewrite/java/testing/assertj/MigrateChai…

    …nedAssertToAssertJTest.java
    timtebeek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    52e12e9 View commit details
    Browse the repository at this point in the history
  3. Minor fixes

    timtebeek committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    2103a92 View commit details
    Browse the repository at this point in the history