Class DelegatingPowerMockRunner
java.lang.Object
org.junit.runner.Runner
org.powermock.modules.junit4.internal.impl.DelegatingPowerMockRunner
- All Implemented Interfaces:
org.junit.runner.Describable
,org.junit.runner.manipulation.Filterable
,PowerMockJUnitRunnerDelegate
public class DelegatingPowerMockRunner
extends org.junit.runner.Runner
implements PowerMockJUnitRunnerDelegate, org.junit.runner.manipulation.Filterable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.junit.runner.Runner
private final PowerMockTestNotifier
private final ClassLoader
private final String
private final Method[]
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingPowerMockRunner
(Class<?> klass) DelegatingPowerMockRunner
(Class<?> klass, String[] methodsToRun) DelegatingPowerMockRunner
(Class<?> klass, String[] methodsToRun, PowerMockTestListener[] listeners) -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.junit.runner.Runner
createDelegate
(Class<?> testClass) private static Method[]
determineTestMethods
(Class<?> testClass, String[] testMethodNames) void
filter
(org.junit.runner.manipulation.Filter filter) org.junit.runner.Description
Class
<?> int
void
run
(org.junit.runner.notification.RunNotifier notifier) private static <T> T
withContextClassLoader
(ClassLoader loader, Callable<T> callable) Methods inherited from class org.junit.runner.Runner
testCount
-
Field Details
-
testClassName
-
delegate
private final org.junit.runner.Runner delegate -
testClassLoader
-
testMethods
-
powerMockTestNotifier
-
-
Constructor Details
-
Method Details
-
determineTestMethods
-
createDelegate
- Throws:
Exception
-
withContextClassLoader
private static <T> T withContextClassLoader(ClassLoader loader, Callable<T> callable) throws Exception - Throws:
Exception
-
run
public void run(org.junit.runner.notification.RunNotifier notifier) - Specified by:
run
in interfacePowerMockJUnitRunnerDelegate
- Specified by:
run
in classorg.junit.runner.Runner
-
getDescription
public org.junit.runner.Description getDescription()- Specified by:
getDescription
in interfaceorg.junit.runner.Describable
- Specified by:
getDescription
in interfacePowerMockJUnitRunnerDelegate
- Specified by:
getDescription
in classorg.junit.runner.Runner
-
getTestCount
public int getTestCount()- Specified by:
getTestCount
in interfacePowerMockJUnitRunnerDelegate
-
getTestClass
- Specified by:
getTestClass
in interfacePowerMockJUnitRunnerDelegate
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException - Specified by:
filter
in interfaceorg.junit.runner.manipulation.Filterable
- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-