Update JUnit 5 annotations in documentation

- replace Before with BeforeEach
- replace RunWith with ExtendWith

Closes gh-10934
This commit is contained in:
nor-ek
2022-03-22 20:30:10 +01:00
committed by Josh Cummings
parent 8a03d1fcec
commit 23cc1eb32b
4 changed files with 15 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ The basic setup looks like this:
[source,java]
----
@RunWith(SpringRunner.class)
@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = HelloWebfluxMethodApplication.class)
public class HelloWebfluxMethodApplicationTests {
@Autowired
@@ -12,7 +12,7 @@ public class HelloWebfluxMethodApplicationTests {
WebTestClient rest;
@Before
@BeforeEach
public void setup() {
this.rest = WebTestClient
.bindToApplicationContext(this.context)