From 0457536d721a62b4d64ce100b2f6492581f83eb0 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 27 Sep 2022 08:24:03 +0200 Subject: [PATCH] Polish "Avoid using JUnit 4 assertions" See gh-32504 --- .../springframework/boot/SpringApplicationExtensionsTests.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/SpringApplicationExtensionsTests.kt b/spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/SpringApplicationExtensionsTests.kt index caff58f3d2..d1da352d9e 100644 --- a/spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/SpringApplicationExtensionsTests.kt +++ b/spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/SpringApplicationExtensionsTests.kt @@ -52,7 +52,7 @@ class SpringApplicationExtensionsTests { val context = runApplication("--debug", "spring", "boot") val args = context.getBean() assertThat(args.nonOptionArgs.toTypedArray()).containsExactly("spring", "boot") - assertThat(args.containsOption("debug")).isTrue + assertThat(args.containsOption("debug")).isEqualTo(true) } @Test @@ -63,7 +63,7 @@ class SpringApplicationExtensionsTests { } val args = context.getBean() assertThat(args.nonOptionArgs.toTypedArray()).containsExactly("spring", "boot") - assertThat(args.containsOption("debug")).isTrue + assertThat(args.containsOption("debug")).isEqualTo(true) assertThat(environment).isEqualTo(context.environment) }