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
Mockito by itself doesn't quite provide the pattern enabled by EasierMock + EasyMock.
Spies are sort of like ObjectUnderTest mocks except backwards in that they pass everything through to a real instance every time but provide validation, So to get the once and only once effect we might want to swap a mock and a spy based on the "replay" call, but that won't quite handle self-calls of other methods on the same object...
Alternately, we might simply hack into the lifecycle of mockito mock similar to easy mock (but that's probably going to make java 9 support harder... already expecting trouble there)
The text was updated successfully, but these errors were encountered:
Mockito by itself doesn't quite provide the pattern enabled by EasierMock + EasyMock.
Spies are sort of like ObjectUnderTest mocks except backwards in that they pass everything through to a real instance every time but provide validation, So to get the once and only once effect we might want to swap a mock and a spy based on the "replay" call, but that won't quite handle self-calls of other methods on the same object...
Alternately, we might simply hack into the lifecycle of mockito mock similar to easy mock (but that's probably going to make java 9 support harder... already expecting trouble there)
The text was updated successfully, but these errors were encountered: