org.powermock.modules.junit4.common.internal.impl
Class JUnit4TestSuiteChunkerImpl
java.lang.Object
org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl
- All Implemented Interfaces:
- org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable, JUnit4TestSuiteChunker, org.powermock.tests.utils.TestSuiteChunker
public class JUnit4TestSuiteChunkerImpl
- extends org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
- implements JUnit4TestSuiteChunker, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
Fields inherited from class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl |
delegates, delegatesCreatedForTheseClasses, NOT_INITIALIZED, prepareForTestExtractor, suppressionExtractor, testAtDelegateMapper, testCount |
Methods inherited from class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl |
chunkClass, createNewClassloader, createTestDelegators, getChunkSize, getDelegatorIndex, getInternalTestIndex, getPowerMockTestListenersLoadedByASpecificClassLoader, getTestChunks, getTestChunksEntries, getTestClasses, hasMockPolicyProvidedClasses |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.powermock.tests.utils.TestSuiteChunker |
createNewClassloader, createTestDelegators, getChunkSize, getTestChunks, getTestChunksEntries |
JUnit4TestSuiteChunkerImpl
public JUnit4TestSuiteChunkerImpl(Class<?> testClass,
Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType)
throws Exception
- Throws:
Exception
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Specified by:
run
in interface JUnit4TestSuiteChunker
shouldExecuteTestForMethod
public boolean shouldExecuteTestForMethod(Class<?> testClass,
Method potentialTestMethod)
- Specified by:
shouldExecuteTestForMethod
in interface org.powermock.tests.utils.TestSuiteChunker
createDelegatorFromClassloader
protected PowerMockJUnitRunnerDelegate createDelegatorFromClassloader(ClassLoader classLoader,
Class<?> testClass,
List<Method> methodsToTest)
throws Exception
- Specified by:
createDelegatorFromClassloader
in class org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
- Throws:
Exception
getTestCount
public int getTestCount()
- Specified by:
getTestCount
in interface org.powermock.tests.utils.TestSuiteChunker
getDescription
public org.junit.runner.Description getDescription()
- Specified by:
getDescription
in interface JUnit4TestSuiteChunker
filter
public void filter(org.junit.runner.manipulation.Filter filter)
throws org.junit.runner.manipulation.NoTestsRemainException
- Specified by:
filter
in interface org.junit.runner.manipulation.Filterable
- Throws:
org.junit.runner.manipulation.NoTestsRemainException
sort
public void sort(org.junit.runner.manipulation.Sorter sorter)
- Specified by:
sort
in interface org.junit.runner.manipulation.Sortable
Copyright © 2007-2012. All Rights Reserved.