Skip to content

Commit af8e6a4

Browse files
committed
Merge pull request #38702 from quaff
* pr/38702: Use idiomatic AssertJ assertions Closes gh-38702
2 parents 39bc7c8 + 3c65fdf commit af8e6a4

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ void subSequenceWhenStartPastExistingEndShouldThrowException() {
9292

9393
@Test
9494
void isEmptyWhenEmptyShouldReturnTrue() {
95-
assertThat(new StringSequence("").isEmpty()).isTrue();
95+
assertThat(new StringSequence("")).isEmpty();
9696
}
9797

9898
@Test
9999
void isEmptyWhenNotEmptyShouldReturnFalse() {
100-
assertThat(new StringSequence("x").isEmpty()).isFalse();
100+
assertThat(new StringSequence("x")).isNotEmpty();
101101
}
102102

103103
@Test

0 commit comments

Comments
 (0)