Merge pull request #38702 from quaff

* pr/38702:
  Use idiomatic AssertJ assertions

Closes gh-38702
This commit is contained in:
Moritz Halbritter
2023-12-12 13:55:34 +01:00

View File

@@ -92,12 +92,12 @@ class StringSequenceTests {
@Test
void isEmptyWhenEmptyShouldReturnTrue() {
assertThat(new StringSequence("").isEmpty()).isTrue();
assertThat(new StringSequence("")).isEmpty();
}
@Test
void isEmptyWhenNotEmptyShouldReturnFalse() {
assertThat(new StringSequence("x").isEmpty()).isFalse();
assertThat(new StringSequence("x")).isNotEmpty();
}
@Test