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

Easymock API replayAll/verifyAll problem #414

Closed
johanhaleby opened this issue Jul 24, 2015 · 1 comment
Closed

Easymock API replayAll/verifyAll problem #414

johanhaleby opened this issue Jul 24, 2015 · 1 comment

Comments

@johanhaleby
Copy link
Collaborator

From r...@kryo.se on June 15, 2012 15:36:21

What steps will reproduce the problem? 1. Create EasyMock mock object
2. Expect call and set return value
3. Call replayAll()
4. Call the mock object
5. Call verifyAll()
6. Easymock object has not been replayed or verified What is the expected output? What do you see instead? Both tests should work, one fails. What version of the product are you using? On what operating system? Linux, Easymock 3.0, Powermock 1.4.12, Java 1.7.0_04-b20 Please provide any additional information below. It works fine when easymock replay()/verify() are used.

Attachment: Failure.java

Original issue: http://code.google.com/p/powermock/issues/detail?id=394

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on July 13, 2012 00:06:50

This shouldn't work and it's documented as well. You need to create the mock using the PowerMock API otherwise PowerMock doesn't know about it. An alternative is to pass the instance to the replayAll method. This is all in the docs.

Status: Invalid

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

No branches or pull requests

1 participant