Polish "Avoid using JUnit 4 assertions"

See gh-32504
pull/32747/head
Stephane Nicoll 2 years ago
parent cee353fba6
commit 0457536d72

@ -52,7 +52,7 @@ class SpringApplicationExtensionsTests {
val context = runApplication<ExampleWebConfig>("--debug", "spring", "boot")
val args = context.getBean<ApplicationArguments>()
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<ApplicationArguments>()
assertThat(args.nonOptionArgs.toTypedArray()).containsExactly("spring", "boot")
assertThat(args.containsOption("debug")).isTrue
assertThat(args.containsOption("debug")).isEqualTo(true)
assertThat(environment).isEqualTo(context.environment)
}

Loading…
Cancel
Save