Class AbstractCommonTestSuiteChunkerImpl
java.lang.Object
org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
- All Implemented Interfaces:
TestSuiteChunker
- Direct Known Subclasses:
AbstractTestSuiteChunkerImpl, PowerMockRuleTestSuiteChunker
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.protected Class<? extends Annotation> Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TestSuiteChunker
shouldExecuteTestForMethod
-
Field Details
-
NOT_INITIALIZED
protected static final int NOT_INITIALIZED- See Also:
-
-
Constructor Details
-
AbstractCommonTestSuiteChunkerImpl
-
-
Method Details
-
getChunkSize
public int getChunkSize()Description copied from interface:TestSuiteChunkerGet the number of chunks defined in this suite.- Specified by:
getChunkSizein interfaceTestSuiteChunker- Returns:
- The number of chunks defined in the correct suite.
-
getTestChunks
Description copied from interface:TestSuiteChunkerGet all chunk entries.- Specified by:
getTestChunksin interfaceTestSuiteChunker- Returns:
- An set of entries that contains a list of methods contained in the chunk and the class loader that loaded these methods.
-
getTestChunksEntries
Description copied from interface:TestSuiteChunkerGet all chunk entries for a specific class.- Specified by:
getTestChunksEntriesin interfaceTestSuiteChunker- 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
Description copied from interface:TestSuiteChunkerGet TestChunk for the given method.- Specified by:
getTestChunkin interfaceTestSuiteChunker- Parameters:
method- - method for which test chunk should be found.- Returns:
- TestChunk for this method.
-
testMethodAnnotation
-