Skip to content

Idiomatic AssertJ assertions for empty Strings#525

Merged
timtebeek merged 4 commits intomainfrom
assertj-string-isempty
Jun 13, 2024
Merged

Idiomatic AssertJ assertions for empty Strings#525
timtebeek merged 4 commits intomainfrom
assertj-string-isempty

Conversation

@timtebeek
Copy link
Copy Markdown
Member

What's changed?

Add a new recipe.

What's your motivation?

Fixes #513

@timtebeek timtebeek self-assigned this Jun 13, 2024
@timtebeek timtebeek added the recipe Recipe request label Jun 13, 2024
Comment thread src/main/java/org/openrewrite/java/testing/assertj/IsEqualToEmptyString.java Outdated
Comment thread src/test/java/org/openrewrite/java/testing/assertj/IsEqualToEmptyStringTest.java Outdated
@timtebeek timtebeek merged commit caad474 into main Jun 13, 2024
@timtebeek timtebeek deleted the assertj-string-isempty branch June 13, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

recipe Recipe request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Convert AssertJ's assertThat(String).isEqualTo("") to isEmpty()

1 participant