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
- IdClass
- 자바
- secondaryindex
- awscli
- markerinterface
- partiql
- 자바스프링
- 개발
- 로드밸런서
- annotation
- awscloud
- 오류
- MockMvc
- AWS
- DynamoDB
- compositekey
- javaspring
- Springsecurity
- Route53
- Java
- 스프링테스트
- testresttemplate
- query
- filterexpression
- 스프링
- EmbeddedId
- 다이나모디비
Archives
- Today
- Total
목록testcode (1)
아장아장 개발 일기
Spring MockMvc 사용법
MockMvc 테스트 기본 소스 @AutoConfigureMockMvc @SpringBootTest(webEnvironment= SpringBootTest.WebEnvironment.MOCK) @RunWith(SpringRunner.class) @ActiveProfiles("dev") public class TestControllerTest extends TestCase { @Autowired private MockMvc mockMvc; @AutoConfigurationMockMvc : mockMvc 의존성 주입을 위한 어노테이션이며, 해당 어노테이션이 없으면 MockMvc가 자동 의존성 주입되지 않고 nullPointException 발생. @ActiveProfiles(”dev”) : 프로젝트에 app..
개발/Spring
2022. 4. 19. 11:36