public class JUnit4TestSuiteChunkerImpl extends AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate> implements JUnit4TestSuiteChunker, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
| Modifier and Type | Field and Description |
|---|---|
private org.junit.runner.Description |
description |
private java.lang.Class<? extends PowerMockJUnitRunnerDelegate> |
runnerDelegateImplementationType |
private static java.lang.Class<? extends java.lang.annotation.Annotation> |
testMethodAnnotation |
delegates, delegatesCreatedForTheseClasses, testCountDEFAULT_TEST_LISTENERS_SIZE, INTERNAL_INDEX_NOT_FOUND, NOT_INITIALIZED, testAtDelegateMapper, testClasses| Constructor and Description |
|---|
JUnit4TestSuiteChunkerImpl(java.lang.Class<?> testClass,
java.lang.Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType) |
| Modifier and Type | Method and Description |
|---|---|
protected PowerMockJUnitRunnerDelegate |
createDelegatorFromClassloader(java.lang.ClassLoader classLoader,
java.lang.Class<?> testClass,
java.util.List<java.lang.reflect.Method> methodsToTest) |
void |
filter(org.junit.runner.manipulation.Filter filter) |
org.junit.runner.Description |
getDescription() |
private MockingFrameworkReporter |
getMockingFrameworkReporter() |
int |
getTestCount()
Get the number of total tests defined in the suite (the sum of all tests
defined in all chunks for this suite).
|
void |
run(org.junit.runner.notification.RunNotifier notifier) |
boolean |
shouldExecuteTestForMethod(java.lang.Class<?> testClass,
java.lang.reflect.Method potentialTestMethod)
Should reflect whether or not this method is eligible for testing.
|
void |
sort(org.junit.runner.manipulation.Sorter sorter) |
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
testMethodAnnotation() |
createTestDelegators, getDelegatorIndex, getFrameworkReporterFactory, getInternalTestIndex, getPowerMockTestListenersLoadedByASpecificClassLoader, getTestClasseschunkClass, getChunkSize, getMockClassLoaderFactory, getTestChunk, getTestChunks, getTestChunksEntries, registerProxyframeworkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTestDelegatorsgetChunkSize, getTestChunk, getTestChunks, getTestChunksEntriesprivate static final java.lang.Class<? extends java.lang.annotation.Annotation> testMethodAnnotation
private org.junit.runner.Description description
private final java.lang.Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType
public JUnit4TestSuiteChunkerImpl(java.lang.Class<?> testClass,
java.lang.Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType)
throws java.lang.Exception
java.lang.Exceptionpublic void run(org.junit.runner.notification.RunNotifier notifier)
run in interface JUnit4TestSuiteChunkerprivate MockingFrameworkReporter getMockingFrameworkReporter()
public boolean shouldExecuteTestForMethod(java.lang.Class<?> testClass,
java.lang.reflect.Method potentialTestMethod)
TestSuiteChunkershouldExecuteTestForMethod in interface TestSuiteChunkertestClass - The class that defines the method.potentialTestMethod - The method to inspect whether it should be executed in the
test suite or not.true if the method is a test method and should be
executed, false otherwise.protected java.lang.Class<? extends java.lang.annotation.Annotation> testMethodAnnotation()
testMethodAnnotation in class AbstractCommonTestSuiteChunkerImplprotected PowerMockJUnitRunnerDelegate createDelegatorFromClassloader(java.lang.ClassLoader classLoader, java.lang.Class<?> testClass, java.util.List<java.lang.reflect.Method> methodsToTest) throws java.lang.Exception
createDelegatorFromClassloader in class AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>java.lang.Exceptionpublic int getTestCount()
RunnerTestSuiteChunkergetTestCount in interface RunnerTestSuiteChunkerpublic org.junit.runner.Description getDescription()
getDescription in interface JUnit4TestSuiteChunkerpublic 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.NoTestsRemainExceptionpublic void sort(org.junit.runner.manipulation.Sorter sorter)
sort in interface org.junit.runner.manipulation.Sortable