I came accross a nasty little problem:
When using powermock (in conjunction with mockito) with
PowerMockRunner, I can debug code in the test class using eclipse just
fine, breakpoints are respected as expected.
But when I use PowerMockRule instead of PowerMockRunner, eclipse will
not stop at the very same breakpoint in the test class. Breakpoints in
the code being tested are working as expected.
I can provide a simple maven project that can be imported into eclipse
to demonstrate the problem.
Debugging in eclipse by attaching to maven-surefire-plugin also
doesn't work as expected.
Anyone else having this problem?
Best regards.
--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To post to this group, send email to powe...@googlegroups.com.
To unsubscribe from this group, send email to powermock+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/powermock?hl=en.
There are two rules? I only know this one:
org.powermock.modules.junit4.rule.PowerMockRule
It doesn't make a difference whether I use -javaagent:.../powermock-
module-javaagent-1.4.10.jar or not.
Btw: Powermock 1.4.10, Eclipse 3.7.1 (Eclipse Indigo SR1), Java 1.6u29
--
You received this message because you are subscribed to the Google Groups "PowerMock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to powermock+...@googlegroups.com.
Visit this group at http://groups.google.com/group/powermock.
For more options, visit https://groups.google.com/d/optout.
Visit this group at https://groups.google.com/group/powermock.