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.Throwablepublic DelegatingPowerMockRunner(java.lang.Class<?> klass,
java.lang.String[] methodsToRun)
throws java.lang.Throwable
java.lang.Throwablepublic DelegatingPowerMockRunner(java.lang.Class<?> klass,
java.lang.String[] methodsToRun,
PowerMockTestListener[] listeners)
throws java.lang.Exception
java.lang.Exceptionprivate 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.Exceptionprivate static <T> T withContextClassLoader(java.lang.ClassLoader loader,
java.util.concurrent.Callable<T> callable)
throws java.lang.Exception
java.lang.Exceptionpublic void run(org.junit.runner.notification.RunNotifier notifier)
run in interface PowerMockJUnitRunnerDelegaterun in class org.junit.runner.Runnerpublic org.junit.runner.Description getDescription()
getDescription in interface org.junit.runner.DescribablegetDescription in interface PowerMockJUnitRunnerDelegategetDescription in class org.junit.runner.Runnerpublic int getTestCount()
getTestCount in interface PowerMockJUnitRunnerDelegatepublic java.lang.Class<?> getTestClass()
getTestClass in interface PowerMockJUnitRunnerDelegatepublic void filter(org.junit.runner.manipulation.Filter filter)
throws org.junit.runner.manipulation.NoTestsRemainException
filter in interface org.junit.runner.manipulation.Filterableorg.junit.runner.manipulation.NoTestsRemainException