Spring boot Test MockMvc 사용하여 테스트하기
1. pom.xml에 다음 라이브러리를 설정한다. org.springframework.boot spring-boot-starter-test test 2. 테스트할 클래스를 선택한 후 JunitTest4를 선택한다. @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK) @AutoConfigureMockMvc public class UserConrollerTest { @Autowired MockMvc mockMvc; @Test public void test() throws Exception { mockMvc.perform(MockMvcRequestBuilders.get("/user/all..