Closed GoogleCodeExporter closed 9 years ago
Could you try to "ignore" the UISpec framework by using the @PowerMockIgnore
annotation to see if it makes any difference? (e.g.
@PowerMockIgnore("org.x.y.uispec"))
Original comment by johan.ha...@gmail.com
on 11 May 2009 at 10:34
Hi Johan,
It seems that using @PowerMockIgnore as you suggested solved the problem.
Thanks for
help. However, the problem was due to "javax" package which I had to add as a
value
to @PowerMockIgnore annotation. Do you know if this is an intended behavior of
PowerMock?
Original comment by manie...@googlemail.com
on 12 May 2009 at 2:10
Well I wouldn't say its the intended behavior but it's a known side-effect when
using
PowerMock in cases where a class instantiates a class that is prepared for test
using
reflection. Then the class is instantiated by the wrong classloader if not
ignored
(there are other ways of getting around the problem as well but using
PowerMockIgnore
is the easiest in most cases I think).
Btw, I would encourage you to please use our mailing list next time instead of
filing
a bug directly. That way we can discuss if it's really a bug or not and also
more
people can see the outcome of the discussion.
Thanks for using PowerMock and taking the time to bring this up. Glad you got
it working.
Original comment by johan.ha...@gmail.com
on 12 May 2009 at 2:38
Original issue reported on code.google.com by
manie...@googlemail.com
on 11 May 2009 at 8:41