public class JUnit4TestSuiteChunkerImpl extends AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate> implements JUnit4TestSuiteChunker, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
delegates, delegatesCreatedForTheseClasses, testCount
NOT_INITIALIZED
Modifier and Type | Method and Description |
---|---|
protected PowerMockJUnitRunnerDelegate |
createDelegatorFromClassloader(ClassLoader classLoader,
Class<?> testClass,
List<Method> methodsToTest) |
void |
filter(org.junit.runner.manipulation.Filter filter) |
org.junit.runner.Description |
getDescription() |
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(Class<?> testClass,
Method potentialTestMethod)
Should reflect whether or not this method is eligible for testing.
|
void |
sort(org.junit.runner.manipulation.Sorter sorter) |
protected Class<? extends Annotation> |
testMethodAnnotation() |
createTestDelegators, getDelegatorIndex, getInternalTestIndex, getPowerMockTestListenersLoadedByASpecificClassLoader, getTestClasses
getChunkSize, getTestChunk, getTestChunks, getTestChunksEntries
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTestDelegators
getChunkSize, getTestChunk, getTestChunks, getTestChunksEntries
public void run(org.junit.runner.notification.RunNotifier notifier)
run
in interface JUnit4TestSuiteChunker
public boolean shouldExecuteTestForMethod(Class<?> testClass, Method potentialTestMethod)
TestSuiteChunker
shouldExecuteTestForMethod
in interface TestSuiteChunker
testClass
- 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 Class<? extends Annotation> testMethodAnnotation()
testMethodAnnotation
in class AbstractCommonTestSuiteChunkerImpl
protected PowerMockJUnitRunnerDelegate createDelegatorFromClassloader(ClassLoader classLoader, Class<?> testClass, List<Method> methodsToTest) throws Exception
createDelegatorFromClassloader
in class AbstractTestSuiteChunkerImpl<PowerMockJUnitRunnerDelegate>
Exception
public int getTestCount()
RunnerTestSuiteChunker
getTestCount
in interface RunnerTestSuiteChunker
public org.junit.runner.Description getDescription()
getDescription
in interface JUnit4TestSuiteChunker
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
filter
in interface org.junit.runner.manipulation.Filterable
org.junit.runner.manipulation.NoTestsRemainException
public void sort(org.junit.runner.manipulation.Sorter sorter)
sort
in interface org.junit.runner.manipulation.Sortable
Copyright © 2019. All rights reserved.