Reputation: 284
There is an issue reported here : http://code.google.com/p/powermock/issues/detail?id=366
I checked the class (Invoker) that checks the condition in Testng and the verification is made with isAssignableFrom
Is there a reason for that, why not just compare class names ? There is an issue in this case because different class loaders are used so this method return false and tests fails when they shouldn't.
Upvotes: 1
Views: 168
Reputation: 15608
I think the first thing to check is why PowerMock is loading a second time an existing class with its own class loader, which is likely to cause other kinds of problems.
Upvotes: 1