Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Spring Boot
- http
- JDBC
- 스프링
- springdatajpa
- spring
- QueryDSL
- 자바
- Exception
- kotlin
- transaction
- 김영한
- AOP
- 스프링 핵심 원리
- db
- Proxy
- 알고리즘
- 스프링 핵심 기능
- 백준
- SpringBoot
- 그리디
- java
- JPQL
- 인프런
- pointcut
- Thymeleaf
- Greedy
- Servlet
- Android
- jpa
Archives
- Today
- Total
목록mvc test (1)
개발자되기 프로젝트
JUnit Test
1. @WebMvcTest, @AutoConfigureMockMvc MVC를 test하기 위해서는 모든 SpringBoot를 불러올 필요가 없음. @WebMvcTest @AutoConfigureMockMvc internal class ExceptionApiControllerTest { } 2. MockMvc @Autowired lateinit var mockMvc: MockMvc 3. Test1 @Test fun helloTest(){ mockMvc.perform( MockMvcRequestBuilders.get("/api/exception/hello") ).andExpect( MockMvcResultMatchers.status().isOk ).andExpect( MockMvcResultMatchers...
인프런/[인프런] Kotlin으로 개발하는 Spring Boot Web MVC
2022. 4. 26. 00:01