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 |
Tags
- AWS
- 자바
- testresttemplate
- 자바스프링
- 스프링테스트
- Spring
- Springsecurity
- markerinterface
- javaspring
- DynamoDB
- 테스트코드
- 오류
- Route53
- query
- compositekey
- EmbeddedId
- 다이나모디비
- 도메인
- MockMvc
- secondaryindex
- 스프링
- annotation
- awscloud
- Java
- awscli
- 로드밸런서
- 개발
- IdClass
- partiql
- filterexpression
Archives
- Today
- Total
목록테스트코드 (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