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
- strict stubbing
- AOP
- spring-data-jpa
- sql-mappler
- rainbow table
- Spring
- 문자열 불변성
- 운영체제
- functional interface
- 쓰레드 라이브러리
- task_struct
- 함수형 인터페이스
- Thread Multiplexing
- ReflectUtils
- 문자열 리터럴
- none이미지
- FunctionalInterface
- SystemCall
- hiberbate
- OS
- Thread Library
- @Header
- custom annotation
- 프로세스
- python-socketio
- Process
- 도커
- java.util.function
- django-crontab
- 롬복주의점
Archives
- Today
- Total
목록Mockito (1)
JH's Develog

객체를 저장하는 Service의 유닛 테스트 중 발생한 Strict Stubbing 문제와 해결법에 대한 포스팅입니다. 문제가 발생한 상황 ... @InjectMocks private NoteBookService sut; @Mock private NoteBookRepository noteBookRepository; @Mock private NoteRepository noteRepository; ... @Test void givenNormalNoteBook_whenCreateNoteBook_thenReturnOK(){ //Given NoteBookDto noteBookDto = createNormalNoteBookDto("notebook 1"); User user = createUser("user1"); ..
Spring
2022. 5. 12. 00:29