I have a JUNIT test that runs with PowerMockRunner.class
.
Now, I am adding a new test, however, I want to run both the test concurrently.
I know I could do this using @RunWith(ConcurrentTestRunner.class)
or just by creating a concurrent executor myself.
Is there anything available with PowerMock to do this?
Sample Code:
@RunWith(PowerMockRunner.class)
@PrepareForTest(ClassWithStaticMethod.class)
@SuppressStaticInitializationFor("ClassWithStaticMethod")
public class PowerMockTest {
@org.junit.Test
public void myTest() {
...
}
//This new Test
@org.junit.Test
public void myNewTest() {
...
}
}