I am not being able to run Powermock through maven. I'm the PowerMock Mockito and PowerMockRunner for driving a jUnit test. Here's the test:
@RunWith(PowerMockRunner.class) @PrepareForTest( { UserLocalServiceUtil.class, ExpandoBridge.class }) public class AlertNotificationsTest { //...
I use powermock to mock Logger.getInstance() method. This causes a problem as junit seems not to reload classes and after the first test test class has wrong logger instance.
public class LoggedClass ...