jackmiras
05/17/2017, 7:06 PMjk
05/18/2017, 8:49 AMjackmiras
05/19/2017, 1:22 PMFailures (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.UserPresenterTest$1$1$3$1.invoke(UserPresenterTest.kt:73)
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.
Happen when JUnit try to execute an expression like this one whenever(request.body()).thenReturn(user.toJson())
where the request
object is an mock.jk
05/19/2017, 1:23 PMjackmiras
05/19/2017, 1:23 PMjk
05/19/2017, 1:24 PMUserPresenterTest.kt:73
?jackmiras
05/19/2017, 1:27 PMjk
05/19/2017, 1:56 PMraniejade
05/21/2017, 12:25 PM