You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArgumentMatcher returns true/false and it's enough for stubs.
However, for mocks false is not enough. When expectation is not meet, it is important why not meet. It means rich-failure is needed, not just false
Actually rich-failure can be achieved with org.assertj.core.matcher.AssertionMatcher.
It works but it's not handy: every assertion needs a class, when lambda is enough
The text was updated successfully, but these errors were encountered:
ArgumentMatcher
returns true/false and it's enough for stubs.However, for mocks false is not enough. When expectation is not meet, it is important why not meet. It means rich-failure is needed, not just
false
Actually rich-failure can be achieved with
org.assertj.core.matcher.AssertionMatcher
.It works but it's not handy: every assertion needs a class, when lambda is enough
The text was updated successfully, but these errors were encountered: