Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore the possibility of supporting Mockito #7

Open
fsparv opened this issue Mar 22, 2017 · 0 comments
Open

Explore the possibility of supporting Mockito #7

fsparv opened this issue Mar 22, 2017 · 0 comments

Comments

@fsparv
Copy link
Owner

fsparv commented Mar 22, 2017

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant