Can't mock `willReturn` with Optional in Kotlin

后端 未结 0 508
别那么骄傲
别那么骄傲 2020-12-21 21:30

I have a method UserService.getUser(userId: UserId) that returns an Optional in Java. So I want to mock that method call in my Kotlin unit test.

This was

相关标签:
回答
  • 消灭零回复
提交回复
热议问题