Class PowerMockRuleTestSuiteChunker
- java.lang.Object
-
- org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
-
- org.powermock.modules.junit4.rule.PowerMockRuleTestSuiteChunker
-
- All Implemented Interfaces:
TestSuiteChunker
public class PowerMockRuleTestSuiteChunker extends AbstractCommonTestSuiteChunkerImpl
-
-
Field Summary
-
Fields inherited from class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
NOT_INITIALIZED
-
-
Constructor Summary
Constructors Constructor Description PowerMockRuleTestSuiteChunker(java.lang.Class testClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
shouldExecuteTestForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method potentialTestMethod)
Should reflect whether or not this method is eligible for testing.-
Methods inherited from class org.powermock.tests.utils.impl.AbstractCommonTestSuiteChunkerImpl
getChunkSize, getTestChunk, getTestChunks, getTestChunksEntries, testMethodAnnotation
-
-
-
-
Method Detail
-
shouldExecuteTestForMethod
public boolean shouldExecuteTestForMethod(java.lang.Class<?> testClass, java.lang.reflect.Method potentialTestMethod)
Description copied from interface:TestSuiteChunker
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.
-
-