MockMvc MockMvc란 실제 객체와 비슷한데 Test를 할때 필요한 기능만 가지는 가짜 객체를 만들어 스프링MVC 동작을 재현할 수 있는 클래스이다. build.gradle testCompile('org.springframework.boot:spring-boot-starter-test') 의존성을 추가해준다. 가장 간단한 GET방식을 알아볼 것인데, Http Method의 post, put, patch, delete 들은 어디서 넣으면 테스트 할 수 있는지 별도의 주석으로 첨부하도록 하겠다. Controller 추가 일단 Controller를 추가해준다. @RestController public class MockTestController{ @GetMapping("/mockTest"..