반응형
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
- MSSQL
- 텐더민트
- 분산 식별자
- 기본문법
- for
- did
- RSA
- 주말농장
- 무화과
- golang 강좌
- rust
- 구피
- 조건문
- 가재
- 반복문
- 애플 달팽이
- 분산 신원
- 물생활
- Python 강좌
- PKI
- 카디날
- Feign
- rust 소개
- 쌈채소
- Tendermint
- 치비
- rust 강좌
- 체리새우
- MSA
- Config server
Archives
- Today
- Total
목록rest test (1)
comnic's Dev&Life
Spring boot로 Rest Test를 위한 간단한 소스
Spring boot로 Rest Test를 위한 간단한 소스 기본적으로 생성된 Test Class를 상속 받아 사용한다. 아래 코드에서는 ApiServerApplicationTests Class가 자동으로 생성된 Class이다. public class TestWebApp extends ApiServerApplicationTests { @Autowired private WebApplicationContext webApplicationContext; private MockMvc mockMvc; @Before public void setup() { mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build(); } @Test public..
JAVA & Spring
2019. 5. 7. 10:14