Open GoogleCodeExporter opened 8 years ago
[deleted comment]
I have seen this before. In my case I had -XX:-UseSplitVerifier in my maven
plugin in the pom. However, this is in eclipse, I had to create a special run
configuration that would test the single method with -XX:-UseSplitVerifier as a
vm arguement.
Original comment by swhite00...@gmail.com
on 10 Dec 2014 at 9:41
Also seeing this problem.
Eclipse: Luna Service Release 1 (4.4.1) Build id: 20140925-1800
JUnit Testing Framework plug-in : 4.11.0.v201303080030
PDE JUnit Runtime Support plugin: 3.4.300.v20130422-2046
JUnit : 4.11
powermock-core, powermock-module-junit4 : 1.5.4
@swhite00, not sure if you are suggesting that this VM argument should fix this
issue or not, but it does not in my case.
Original comment by jordangl...@gmail.com
on 13 Dec 2014 at 4:50
[deleted comment]
I faced the same problem. Forget about -XX:-UseSplitVerifier.
Solution: Put the @PrepareForTest(ClassUnderTest.class) annotation to the
class-level of the test class as described at
https://code.google.com/p/powermock/wiki/MockStatic.
As soon as you have changed this everything works as expected.
Original comment by matthias...@gmail.com
on 5 Feb 2015 at 4:26
Original issue reported on code.google.com by
liubao2...@gmail.com
on 31 Jul 2014 at 8:16Attachments: