Package org.powermock.tests.utils
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
Get all chunk entries.- Returns:
- An set of entries that contains a list of methods contained in the chunk and the class loader that loaded these methods.
-
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
Get TestChunk for the given method.- Parameters:
method- - method for which test chunk should be found.- Returns:
- TestChunk for this method.
-
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.
-