Browse Source

Merge pull request #38702 from quaff

* pr/38702:
  Use idiomatic AssertJ assertions

Closes gh-38702
pull/38818/head
Moritz Halbritter 2 years ago
parent
commit
af8e6a422a
  1. 4
      spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/StringSequenceTests.java

4
spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/StringSequenceTests.java

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

Loading…
Cancel
Save