mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Avoid using JUnit 4 assertions"
See gh-32504
This commit is contained in:
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…
Reference in New Issue
Block a user