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
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.
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.
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
The text was updated successfully, but these errors were encountered: