반응형
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
- property or field 'jobparameters' cannot be found on object of type
- springboottest
- JUnit
- no sources given
- LeetCode
- mac os git error
- springbatch error
- error
- No tests found for given includes
- parse
- springboot
- 스프링부트테스트
- java 버전 변경
- java version
- AWS CLI
- easy
- java 1.8 11
- Medium
- Java 1.8
- yum install java
- aws
- java
- OpenFeign
- log error
- maybe not public or not valid?
- java 여러개 버전
- java 11
- el1008e
- querydsl no sources given
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
Archives
- Today
- Total
목록spybean (1)
쩨이엠 개발 블로그
[Mockito Test] doNothing 에러 (Only void methods can doNothing())
Mockito로 Unit Test를 하는 도중 Service 내에서 다른 API 호출건이 포함되어있다 테스트할 때에는 포인트 적립이 되지 않도록 Mocking을 하기 위해 doNothing을 사용했다 Mockito.doNothing().when(pointApi).savePoint(any()); 그리고 다음과 같은 에러를 받았다 Only void methods can doNothing()! Example of correct use of doNothing(): doNothing(). doThrow(new RuntimeException()) .when(mock).someVoidMethod(); Above means: someVoidMethod() does nothing the 1st time but throw..
개발/Spring
2024. 4. 17. 22:14