praveen1503 / powermock

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

PrepareForTest doesnt work if a variable named "org" is there in test case #368

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a test case using easymock, powermock.
2. The test case should have a variable named "org".
3. Annotate class/method with @PrepareForTest annotation

What is the expected output? 
Expected output is that the code should work fine

What do you see instead?
InvocationException

What version of the product are you using? 
powermock-easymock-1.4.10-full.jar

On what operating system?
Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by kaushal....@gmail.com on 4 Feb 2012 at 1:12

Attachments:

GoogleCodeExporter commented 8 years ago
Looks like bug. If you're up for it please provide a patch.

Original comment by johan.ha...@gmail.com on 6 Feb 2012 at 8:02