Interface TestSuiteChunker
- All Known Subinterfaces:
JUnit4TestSuiteChunker, RunnerTestSuiteChunker
- All Known Implementing Classes:
AbstractCommonTestSuiteChunkerImpl, AbstractTestSuiteChunkerImpl, JUnit4TestSuiteChunkerImpl, PowerMockRuleTestSuiteChunker
public interface TestSuiteChunker
-
Method Summary
Modifier and TypeMethodDescriptionintGet the number of chunks defined in this suite.getTestChunk(Method method) Get TestChunk for the given method.Get all chunk entries.getTestChunksEntries(Class<?> testClass) Get all chunk entries for a specific class.booleanshouldExecuteTestForMethod(Class<?> testClass, Method potentialTestMethod) Should reflect whether or not this method is eligible for testing.
-
Method Details
-
getChunkSize
int getChunkSize()Get the number of chunks defined in this suite.- Returns:
- The number of chunks defined in the correct suite.
-
getTestChunks
-
getTestChunksEntries
Get all chunk entries for a specific class.- Parameters:
testClass- The class whose chunk entries to get.- Returns:
- An set of entries that contains a list of methods contained in the chunk for the specific test class and the class loader that loaded these methods.
-
getTestChunk
-
shouldExecuteTestForMethod
Should reflect whether or not this method is eligible for testing.- Parameters:
testClass- The class that defines the method.potentialTestMethod- The method to inspect whether it should be executed in the test suite or not.- Returns:
trueif the method is a test method and should be executed,falseotherwise.
-