|
1 | 1 | package org.baeldung.boot.boottest; |
2 | 2 |
|
3 | | -import static org.hamcrest.CoreMatchers.is; |
4 | | -import static org.hamcrest.Matchers.hasSize; |
5 | | -import static org.mockito.BDDMockito.given; |
6 | | -import static org.mockito.Mockito.reset; |
7 | | -import static org.mockito.Mockito.verify; |
8 | | -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; |
9 | | -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; |
10 | | -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; |
11 | | -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
12 | | - |
13 | | -import java.util.Arrays; |
14 | | -import java.util.List; |
15 | | - |
16 | | -import org.baeldung.boot.boottest.Employee; |
17 | | -import org.baeldung.boot.boottest.EmployeeRestController; |
18 | | -import org.baeldung.boot.boottest.EmployeeService; |
19 | 3 | import org.junit.Before; |
20 | 4 | import org.junit.Test; |
21 | 5 | import org.junit.runner.RunWith; |
|
28 | 12 | import org.springframework.test.context.junit4.SpringRunner; |
29 | 13 | import org.springframework.test.web.servlet.MockMvc; |
30 | 14 |
|
| 15 | +import java.util.Arrays; |
| 16 | +import java.util.List; |
| 17 | + |
| 18 | +import static org.hamcrest.CoreMatchers.is; |
| 19 | +import static org.hamcrest.Matchers.hasSize; |
| 20 | +import static org.mockito.BDDMockito.given; |
| 21 | +import static org.mockito.Mockito.reset; |
| 22 | +import static org.mockito.Mockito.verify; |
| 23 | +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; |
| 24 | +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; |
| 25 | +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; |
| 26 | +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
| 27 | + |
31 | 28 | @RunWith(SpringRunner.class) |
32 | 29 | @WebMvcTest(EmployeeRestController.class) |
33 | | -public class EmployeeRestControllerTest { |
| 30 | +public class EmployeeControllerIntegrationTest { |
34 | 31 |
|
35 | 32 | @Autowired |
36 | 33 | private MockMvc mvc; |
|
0 commit comments