|
1 | | -import org.junit.jupiter.api.Test; |
2 | | -import org.springframework.beans.factory.annotation.Autowired; |
3 | | -import org.springframework.test.web.servlet.MockMvc; |
4 | | -import org.springframework.boot.test.context.SpringBootTest; |
5 | | -import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; |
6 | | -import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; |
7 | | -import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
8 | | -@SpringBootTest(classes = com.programming.userService.StreamingApplication.class) |
9 | | -@AutoConfigureMockMvc |
10 | | -public class TestUserService { |
11 | | - @Autowired |
12 | | - private MockMvc mockMvc; |
| 1 | +// import org.junit.jupiter.api.Test; |
| 2 | +// import org.springframework.beans.factory.annotation.Autowired; |
| 3 | +// import org.springframework.test.web.servlet.MockMvc; |
| 4 | +// import org.springframework.boot.test.context.SpringBootTest; |
| 5 | +// import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; |
| 6 | +// import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; |
| 7 | +// import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; |
| 8 | +// @SpringBootTest(classes = com.programming.userService.StreamingApplication.class) |
| 9 | +// @AutoConfigureMockMvc |
| 10 | +// public class TestUserService { |
| 11 | +// @Autowired |
| 12 | +// private MockMvc mockMvc; |
13 | 13 |
|
14 | | - @Test |
15 | | - public void testGetServiceName() throws Exception { |
16 | | - mockMvc.perform(get("/user/")) |
17 | | - .andExpect(status().isOk()); |
18 | | - } |
19 | | -} |
| 14 | +// @Test |
| 15 | +// public void testGetServiceName() throws Exception { |
| 16 | +// mockMvc.perform(get("/user/")) |
| 17 | +// .andExpect(status().isOk()); |
| 18 | +// } |
| 19 | +// } |
0 commit comments