반응형
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
- Medium
- LeetCode
- el1008e
- java 1.8 11
- no sources given
- yum install java
- mac os git error
- springboot
- parse
- java 11
- java 여러개 버전
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- springboottest
- property or field 'jobparameters' cannot be found on object of type
- JUnit
- aws
- springbatch error
- java
- AWS CLI
- Java 1.8
- log error
- java 버전 변경
- java version
- 스프링부트테스트
- maybe not public or not valid?
- querydsl no sources given
- No tests found for given includes
- easy
- OpenFeign
- error
Archives
- Today
- Total
목록mockito (1)
쩨이엠 개발 블로그
[ Spring ] Springboot test - mockito (Mapper 접근)
이번 테스트를 하기 위해서는 initialize 때 필요한 데이터들을 DB에서 가져와야한다 DB 접근은 하기 싫을 때(못할때) 그치만 한 것처럼 데이터 리스트를 세팅하려 할 때 쓸 수 있는 Mockito의 함수에 대해서 정리한다 실제 Service 코드 DataService.java @Service @Slf4j public class DataService { @Autowired private DataMapper dataMapper; static Map targetDataMap; static Map stepConfigMap; static List cycleList; @PostConstruct private void init() { initMap(); initStepItem(); } void initMap(..
개발/Spring
2020. 5. 19. 12:00