Use idiomatic AssertJ assertions

See gh-38702
This commit is contained in:
Yanming Zhou
2023-12-08 09:13:02 +08:00
committed by Moritz Halbritter
parent 39bc7c8582
commit 3c65fdfa12

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