I am working on Junits with Mockito + PowerMock + PowerRule
Refer my Previous question: Getting javassist not found with PowerMock and PowerRule in Junit with Mockito
Now that I have got my Junits working successfully, I am getting a strange problem that the Eclipse debugger is not working ie I donot stop on the breakpoints although my tests are getting executed (checked with SOP statements)
Now when I remove PowerRule from Junits, The debugger starts working again
I don't know why is this happening. Please let me know if you have any idea on this
Thanks
If you have used annotation @PrepareForTest({ClassName.class})
at the class level, then issue would have been occurred.
One work around is to declare that annotation at method.It would allow you to debug it even though power mocking is used in your test case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With