Switch focus to JUnit Jupiter in testing examples

This commit is contained in:
Sam Brannen
2022-05-15 19:34:07 +02:00
parent 0fb0335aa0
commit bf8a54decf
2 changed files with 10 additions and 10 deletions

View File

@@ -356,16 +356,16 @@ import org.springframework.stereotype.Component;
* {@code @Component} classes.
*
* <pre class="code">
* &#064;RunWith(SpringRunner.class)
* &#064;ExtendWith(SpringExtension.class)
* &#064;ContextConfiguration(classes = {AppConfig.class, DatabaseConfig.class})
* public class MyTests {
* class MyTests {
*
* &#064;Autowired MyBean myBean;
*
* &#064;Autowired DataSource dataSource;
*
* &#064;Test
* public void test() {
* void test() {
* // assertions against myBean ...
* }
* }</pre>