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. 2. 3. What is the expected output? What do you see instead? when mock a singleton,the mockstatic method throws error says:"commandPool is not an interface" What version of the product are you using? On what operating system? the latest easymock version,windows 7 64bit Please provide any additional information below. I use AndroidEasyMock.jar on google code at first, but here comes a singleton need to be mock, so I add PowerMock to my test project. Android integrated JUnit3, so I write the test as the example in your source of JUnit3, but red bar comes out when runing the mockStatic(commandPool) method, "commandPool is not an interface"
I not an Android developer myself but I've just junit4 with android and that was no problem. Other people have successfully used PowerMock with Android so it should work.
From sendto...@gmail.com on August 12, 2011 08:37:32
What steps will reproduce the problem? 1. 2. 3. What is the expected output? What do you see instead? when mock a singleton,the mockstatic method throws error says:"commandPool is not an interface" What version of the product are you using? On what operating system? the latest easymock version,windows 7 64bit Please provide any additional information below. I use AndroidEasyMock.jar on google code at first, but here comes a singleton need to be mock, so I add PowerMock to my test project. Android integrated JUnit3, so I write the test as the example in your source of JUnit3, but red bar comes out when runing the mockStatic(commandPool) method, "commandPool is not an interface"
Original issue: http://code.google.com/p/powermock/issues/detail?id=341
The text was updated successfully, but these errors were encountered: