I have a problem about running PowerMock with @Runwith(Enclosed.class) in pararell.
My test class structure:
@RunWith(PowerMockRunner.class)
@PrepareForTest(UnitBuild.class)
public class ut_QueueBuild{
@Test
public void someTest(){}
public static InnerTestClass{
@Test
public void someInnerTest(){}
}
}
Before using powerMock I just used:
@RunWith(Enclosed.class)
public class unitTestClass {
...
But since I am using PowerMock there is no possibility to use in pararell @Runwith(PowerMockRunner.class) and @Runwith(Enclosed.class)
How can I solve this ?
Thanks a lot !