Interface TestSuiteChunker

All Known Subinterfaces:
JUnit4TestSuiteChunker, RunnerTestSuiteChunker
All Known Implementing Classes:
AbstractCommonTestSuiteChunkerImpl, AbstractTestSuiteChunkerImpl, JUnit4TestSuiteChunkerImpl, PowerMockRuleTestSuiteChunker

public interface TestSuiteChunker
  • 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

      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

      List<TestChunk> getTestChunksEntries(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(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(Class<?> testClass, 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.