public class DelegatingPowerMockRunner extends org.junit.runner.Runner implements PowerMockJUnitRunnerDelegate, org.junit.runner.manipulation.Filterable
Modifier and Type | Field and Description |
---|---|
private org.junit.runner.Runner |
delegate |
private PowerMockTestNotifier |
powerMockTestNotifier |
private java.lang.ClassLoader |
testClassLoader |
private java.lang.String |
testClassName |
private java.lang.reflect.Method[] |
testMethods |
Constructor and Description |
---|
DelegatingPowerMockRunner(java.lang.Class<?> klass) |
DelegatingPowerMockRunner(java.lang.Class<?> klass,
java.lang.String[] methodsToRun) |
DelegatingPowerMockRunner(java.lang.Class<?> klass,
java.lang.String[] methodsToRun,
PowerMockTestListener[] listeners) |
Modifier and Type | Method and Description |
---|---|
private static org.junit.runner.Runner |
createDelegate(java.lang.Class<?> testClass) |
private static java.lang.reflect.Method[] |
determineTestMethods(java.lang.Class<?> testClass,
java.lang.String[] testMethodNames) |
void |
filter(org.junit.runner.manipulation.Filter filter) |
org.junit.runner.Description |
getDescription() |
java.lang.Class<?> |
getTestClass() |
int |
getTestCount() |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
private static <T> T |
withContextClassLoader(java.lang.ClassLoader loader,
java.util.concurrent.Callable<T> callable) |
private final java.lang.String testClassName
private final org.junit.runner.Runner delegate
private final java.lang.ClassLoader testClassLoader
private final java.lang.reflect.Method[] testMethods
private final PowerMockTestNotifier powerMockTestNotifier
public DelegatingPowerMockRunner(java.lang.Class<?> klass) throws java.lang.Throwable
java.lang.Throwable
public DelegatingPowerMockRunner(java.lang.Class<?> klass, java.lang.String[] methodsToRun) throws java.lang.Throwable
java.lang.Throwable
public DelegatingPowerMockRunner(java.lang.Class<?> klass, java.lang.String[] methodsToRun, PowerMockTestListener[] listeners) throws java.lang.Exception
java.lang.Exception
private static java.lang.reflect.Method[] determineTestMethods(java.lang.Class<?> testClass, java.lang.String[] testMethodNames)
private static org.junit.runner.Runner createDelegate(java.lang.Class<?> testClass) throws java.lang.Exception
java.lang.Exception
private static <T> T withContextClassLoader(java.lang.ClassLoader loader, java.util.concurrent.Callable<T> callable) throws java.lang.Exception
java.lang.Exception
public void run(org.junit.runner.notification.RunNotifier notifier)
run
in interface PowerMockJUnitRunnerDelegate
run
in class org.junit.runner.Runner
public org.junit.runner.Description getDescription()
getDescription
in interface org.junit.runner.Describable
getDescription
in interface PowerMockJUnitRunnerDelegate
getDescription
in class org.junit.runner.Runner
public int getTestCount()
getTestCount
in interface PowerMockJUnitRunnerDelegate
public java.lang.Class<?> getTestClass()
getTestClass
in interface PowerMockJUnitRunnerDelegate
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
filter
in interface org.junit.runner.manipulation.Filterable
org.junit.runner.manipulation.NoTestsRemainException