Closed GoogleCodeExporter closed 9 years ago
Still a problem as of 1.4.8 as I also ran into this issue, and debugged it to
the same location as reporter:
org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.Po
werMockJUnit47MethodRunner.executeTest(final Method method, final Object
testInstance, final Runnable test):89
Debugging shows the Throwable e on line 84 is the exception I would expect to
have seen being passed to the handleException method, not the null field
potentialTestFailure.
Configuration:
PowerMock 1.4.8
EasyMock 3.0
JUnit 4.8.2
JDK 1.5 & 1.6
Mac OSX 10.5
run via Eclipse Helios and custom ant build script
Original comment by NathanDM...@gmail.com
on 10 Mar 2011 at 11:32
Unfortunatley I haven't had a change to look into this yet so it should still
be present in 1.4.8. Thanks for the supplied examples though, it's really
helpful.
Original comment by johan.ha...@gmail.com
on 18 Mar 2011 at 10:18
I've finally managed to find time to have a look at this. The problem was that
the exception passed to super.handleException was potentialTestFailure even
though it was null. When this is resolved the test you provide fails with the
correct error message. It's how ever really difficult to write a test case to
verify that this is solved :).
Anyway thanks a lot for your detailed description and your supplied code.
Without it it would have been really hard to fix the issue. If you have time
please try to verify that the fix actually works by checking out and building
PowerMock from trunk. Thanks for your patience.
Original comment by johan.ha...@gmail.com
on 5 Apr 2011 at 7:54
Original issue reported on code.google.com by
laura.r....@gmail.com
on 2 Feb 2011 at 9:14Attachments: