Use AssertJ static imports consistently in 5.3.x
Closes gh-29282
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.springframework.test.context
|
||||
|
||||
import org.assertj.core.api.Assertions
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.jupiter.api.Test
|
||||
import org.springframework.beans.factory.annotation.Autowired
|
||||
import org.springframework.beans.factory.annotation.Value
|
||||
@@ -36,8 +36,8 @@ class KotlinDynamicPropertySourceIntegrationTests {
|
||||
|
||||
@Test
|
||||
fun hasInjectedValues(@Autowired service: Service) {
|
||||
Assertions.assertThat(service.ip).isEqualTo("127.0.0.1")
|
||||
Assertions.assertThat(service.port).isEqualTo(4242)
|
||||
assertThat(service.ip).isEqualTo("127.0.0.1")
|
||||
assertThat(service.port).isEqualTo(4242)
|
||||
}
|
||||
|
||||
@Configuration
|
||||
|
||||
Reference in New Issue
Block a user