Switch focus to JUnit Jupiter in testing examples
This commit is contained in:
@@ -356,16 +356,16 @@ import org.springframework.stereotype.Component;
|
||||
* {@code @Component} classes.
|
||||
*
|
||||
* <pre class="code">
|
||||
* @RunWith(SpringRunner.class)
|
||||
* @ExtendWith(SpringExtension.class)
|
||||
* @ContextConfiguration(classes = {AppConfig.class, DatabaseConfig.class})
|
||||
* public class MyTests {
|
||||
* class MyTests {
|
||||
*
|
||||
* @Autowired MyBean myBean;
|
||||
*
|
||||
* @Autowired DataSource dataSource;
|
||||
*
|
||||
* @Test
|
||||
* public void test() {
|
||||
* void test() {
|
||||
* // assertions against myBean ...
|
||||
* }
|
||||
* }</pre>
|
||||
|
||||
Reference in New Issue
Block a user