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.Runnerprivate final PowerMockTestNotifierprivate final ClassLoaderprivate final Stringprivate 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.RunnercreateDelegate(Class<?> testClass) private static Method[]determineTestMethods(Class<?> testClass, String[] testMethodNames) voidfilter(org.junit.runner.manipulation.Filter filter) org.junit.runner.DescriptionClass<?> intvoidrun(org.junit.runner.notification.RunNotifier notifier) private static <T> TwithContextClassLoader(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
-
DelegatingPowerMockRunner
-
DelegatingPowerMockRunner
-
DelegatingPowerMockRunner
public DelegatingPowerMockRunner(Class<?> klass, String[] methodsToRun, PowerMockTestListener[] listeners) throws Exception - Throws:
Exception
-
-
Method Details
-
determineTestMethods
-
createDelegate
-
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:
runin interfacePowerMockJUnitRunnerDelegate- Specified by:
runin classorg.junit.runner.Runner
-
getDescription
public org.junit.runner.Description getDescription()- Specified by:
getDescriptionin interfaceorg.junit.runner.Describable- Specified by:
getDescriptionin interfacePowerMockJUnitRunnerDelegate- Specified by:
getDescriptionin classorg.junit.runner.Runner
-
getTestCount
public int getTestCount()- Specified by:
getTestCountin interfacePowerMockJUnitRunnerDelegate
-
getTestClass
- Specified by:
getTestClassin interfacePowerMockJUnitRunnerDelegate
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException - Specified by:
filterin interfaceorg.junit.runner.manipulation.Filterable- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-