Skip to content

Commit

Permalink
Update Kotlin-Coroutine-Spring-WebFluxTest.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HomoEfficio authored May 11, 2021
1 parent 0d305e3 commit 060c8d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kotlin-Coroutine-Spring-WebFluxTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ java.lang.NullPointerException: any() must not be null
요는 `any()`가 null 을 반환하기 때문에 발생하는 에러다. 이건 또 어떻게 해결하나 찾아보니 https://withhamit.tistory.com/138 여기에 아주 단순한 해법이 있었다. `Mockito.any()` 대신에 다음과 같이 자체 구현한 `any()`를 사용하면 된다.

```kotlin
@Suppress("UNCHECKED_CAST")
private fun <T> any(): T {
Mockito.any<T>()
return null as T
Expand Down

0 comments on commit 060c8d5

Please sign in to comment.