컨트롤러1 Spring Boot MVC Controller Test (컨트롤러 테스트) 목적 Spring MVC Web Controllers 테스트 HTTP requests 생성과 전송 HTTP response 검증 (status code, view name, model attributes) Process @AutoConfigureMockMvc MockMvc 주입 web requests 수행 Expectations 정의 Assert results 테스트 클래스 package com.luv2code.springmvc; @TestPropertySource("/application.properties") @AutoConfigureMockMvc @SpringBootTest public class GreadeBookControllerTest { @Autowired private JdbcTemplat.. 2022. 11. 5. 이전 1 다음