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

Doesn't work well in Android project #361

Closed
johanhaleby opened this issue Jul 24, 2015 · 2 comments
Closed

Doesn't work well in Android project #361

johanhaleby opened this issue Jul 24, 2015 · 2 comments

Comments

@johanhaleby
Copy link
Collaborator

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

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on August 21, 2011 14:30:33

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.

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on September 14, 2011 01:47:32

No response from user, closing issue.

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