File tree 5 files changed +8
-8
lines changed
main/java/guru/springframework/configuration
test/java/guru/springframework 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 14
14
<parent >
15
15
<groupId >org.springframework.boot</groupId >
16
16
<artifactId >spring-boot-starter-parent</artifactId >
17
- <version >1.2.4 .RELEASE</version >
17
+ <version >1.4.2 .RELEASE</version >
18
18
<relativePath /> <!-- lookup parent from repository -->
19
19
</parent >
20
20
54
54
<dependency >
55
55
<groupId >com.h2database</groupId >
56
56
<artifactId >h2</artifactId >
57
- <scope >runtime </scope >
57
+ <scope >compile </scope >
58
58
</dependency >
59
59
<dependency >
60
60
<groupId >org.postgresql</groupId >
Original file line number Diff line number Diff line change 1
1
package guru .springframework .configuration ;
2
2
3
3
import org .h2 .server .web .WebServlet ;
4
- import org .springframework .boot .context . embedded .ServletRegistrationBean ;
4
+ import org .springframework .boot .web . servlet .ServletRegistrationBean ;
5
5
import org .springframework .context .annotation .Bean ;
6
6
import org .springframework .context .annotation .Configuration ;
7
7
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 1
1
package guru .springframework .configuration ;
2
2
3
3
import org .springframework .boot .autoconfigure .EnableAutoConfiguration ;
4
- import org .springframework .boot .orm . jpa .EntityScan ;
4
+ import org .springframework .boot .autoconfigure . domain .EntityScan ;
5
5
import org .springframework .context .annotation .Configuration ;
6
6
import org .springframework .data .jpa .repository .config .EnableJpaRepositories ;
7
7
import org .springframework .transaction .annotation .EnableTransactionManagement ;
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