jackmiras
05/17/2017, 6:30 PMrequest and response objects and run the UserPresenterTest with the following command gradle -Dtest.single=UserPresenterTest test and I got a different error:
Failures (1):
Spek:user.UserPresenterTest:given the user presenter:given a post action with a already registered user
=> org.mockito.exceptions.misusing.UnfinishedVerificationException:
Missing method call for verify(mock) here:
-> at user.UserPresenter.render(UserPresenter.kt:105)
Example of correct verification:
verify(mock).doSomething()
Also, this error might show up because you verify either of: final/private/equals()/hashCode() methods.
Those methods *cannot* be stubbed/verified.
Mocking methods declared on non-public parent classes is not supported.