Update JUnit 5 annotations in documentation
- replace Before with BeforeEach - replace RunWith with ExtendWith Closes gh-10934
This commit is contained in:
@@ -8,7 +8,7 @@ Here is a minimal sample of what we can do:
|
||||
.Java
|
||||
[source,java,role="primary"]
|
||||
----
|
||||
@RunWith(SpringRunner.class)
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = HelloWebfluxMethodApplication.class)
|
||||
public class HelloWorldMessageServiceTests {
|
||||
@Autowired
|
||||
@@ -42,7 +42,7 @@ public class HelloWorldMessageServiceTests {
|
||||
.Kotlin
|
||||
[source,kotlin,role="secondary"]
|
||||
----
|
||||
@RunWith(SpringRunner::class)
|
||||
@ExtendWith(SpringExtension.class)
|
||||
@ContextConfiguration(classes = [HelloWebfluxMethodApplication::class])
|
||||
class HelloWorldMessageServiceTests {
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user