Closed euZebe closed 7 years ago
Thanks for your Pull-Request. That's rather an issue of Mockito and related to your own changes. I'd rather upgrade to Mockito 2.
I upgraded to Mockito 2.6.8. Can you re-try you code with the update whether the fix solves your issue?
OK, I missunderstood what was expected in this test. Sorry for that.
Add mock initialization in test PlaceOrderImplTest. testPlaceOrderItemNotFound()
The lack of this call generates a test failure when using Optional instead of returning null in ItemRepository find method. This can be seen in the fork https://github.com/euzebe/cleanarchitecture, master branch.