I need to mock a static method on an android instrumentation test.
If i need to mock a static method, the test class needs to be @RunWith(PowerMockRunner.class)
. But my instrumentation test are required to run with AndroidJUnit4.class
.
Is it possible to have two runnable? or is there any other way i can use power mock to mock static methods? or any other options to mock static classes?