File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/test/java/guru/springframework Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .junit .Test ;
4
4
import org .junit .runner .RunWith ;
5
+ import org .springframework .boot .test .context .SpringBootTest ;
5
6
import org .springframework .test .context .web .WebAppConfiguration ;
6
- import org .springframework .boot .test .SpringApplicationConfiguration ;
7
7
import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
8
8
9
9
@ RunWith (SpringJUnit4ClassRunner .class )
10
- @ SpringApplicationConfiguration (classes = SpringBootWebApplication .class )
10
+ @ SpringBootTest (classes = SpringBootWebApplication .class )
11
11
@ WebAppConfiguration
12
12
public class SpringBootWebApplicationTests {
13
13
Original file line number Diff line number Diff line change 5
5
import org .junit .Test ;
6
6
import org .junit .runner .RunWith ;
7
7
import org .springframework .beans .factory .annotation .Autowired ;
8
- import org .springframework .boot .test .SpringApplicationConfiguration ;
8
+ import org .springframework .boot .test .context . SpringBootTest ;
9
9
import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
10
10
11
11
import java .math .BigDecimal ;
12
12
13
13
import static org .junit .Assert .*;
14
14
15
15
@ RunWith (SpringJUnit4ClassRunner .class )
16
- @ SpringApplicationConfiguration (classes = {RepositoryConfiguration .class })
16
+ @ SpringBootTest (classes = {RepositoryConfiguration .class })
17
17
public class ProductRepositoryTest {
18
18
19
19
private ProductRepository productRepository ;
You can’t perform that action at this time.
0 commit comments