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
- redis
- select_type
- Spring
- Exception
- jwt
- AOP
- java
- docker
- static
- 열 속성
- StringBuilder
- 생성자 주입
- equals
- lambda
- 인덱스
- DDL
- cache
- SQL
- 테스트 코드
- jpa
- DI
- 재정의
- 조합
- 필드 주입
- MSA
- stream
- KEVISS
- hashcode
- 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