tiebin-zhang / powermock

Automatically exported from code.google.com/p/powermock
Apache License 2.0
0 stars 0 forks source link

Not able to make PowerMock work in a junit plugin test #382

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a fragment plugin (test plugin)for a plugin project on Eclipse.
2. Mock a static class.
3. Run the test as a JUnit Plugin Test

What is the expected output? What do you see instead?
Expected to mock the static method. 
Instead, "java.lang.Exception: No runnable methods" exception is got

What version of the product are you using? On what operating system?
powermock-mockito-junit-1.4.12; Windows 7.

Please provide any additional information below.
The test runs perfectly well with the same lines of code when run as a normal 
JUnit test.

Original issue reported on code.google.com by vijetha2...@gmail.com on 20 Apr 2012 at 11:32

GoogleCodeExporter commented 9 years ago
Any updates on this bug?  This is a real blocker for me.

Original comment by Kidder1...@googlemail.com on 30 Aug 2012 at 2:15

GoogleCodeExporter commented 9 years ago
Sorry, no updates. Please help out by investigating why this happens.

Original comment by johan.ha...@gmail.com on 30 Aug 2012 at 6:05