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
- DDL
- 필드 주입
- AOP
- 조합
- java
- 생성자 주입
- KEVISS
- 테스트 코드
- lambda
- stream
- cache
- jwt
- equals
- select_type
- SQL
- StringBuilder
- 인덱스
- 열 속성
- DI
- hashcode
- static
- Exception
- redis
- 재정의
- MSA
- docker
- Spring
- jpa
- VUE
- Test
Archives
- Today
- Total
목록Test (5)
백엔드 개발자 블로그
테스트
Junit설정build.gradle에 dependency에 추가testImplementation('org.springframework.boot:spring-boot-starter-test')통합@SpringBootTest : 다 불러와서 무거워짐 -> 필요한 class만 부르기 가능Controller@WebMvcTest(Controller이름.class) : 사용할 Controller scan@MockBean : 사용할 Service 가짜객체 사용@Autowired : mvc에 가짜객체 주입@Test : 테스트 함수 지정 given : 입력, 결과Product productStub = new Product("product-test"); productStub.setProductId("fc00ddb5-9f0..
Test
2023. 8. 22. 10:23