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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getChunkSize()
Get the number of chunks defined in this suite.TestChunk
getTestChunk(java.lang.reflect.Method method)
Get TestChunk for the given method.java.util.List<TestChunk>
getTestChunks()
Get all chunk entries.java.util.List<TestChunk>
getTestChunksEntries(java.lang.Class<?> testClass)
Get all chunk entries for a specific class.boolean
shouldExecuteTestForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method potentialTestMethod)
Should reflect whether or not this method is eligible for testing.
-
-
-
Method Detail
-
getChunkSize
int getChunkSize()
Get the number of chunks defined in this suite.- Returns:
- The number of chunks defined in the correct suite.
-
getTestChunks
java.util.List<TestChunk> 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
java.util.List<TestChunk> getTestChunksEntries(java.lang.Class<?> testClass)
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
TestChunk getTestChunk(java.lang.reflect.Method method)
Get TestChunk for the given method.- Parameters:
method
- - method for which test chunk should be found.- Returns:
- TestChunk for this method.
-
shouldExecuteTestForMethod
boolean shouldExecuteTestForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method potentialTestMethod)
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:
true
if the method is a test method and should be executed,false
otherwise.
-
-