Class AbstractCommonTestSuiteChunkerImpl

    • Constructor Detail

      • AbstractCommonTestSuiteChunkerImpl

        protected AbstractCommonTestSuiteChunkerImpl​(Class<?> testClass)
                                              throws Exception
        Throws:
        Exception
      • AbstractCommonTestSuiteChunkerImpl

        protected AbstractCommonTestSuiteChunkerImpl​(Class<?>... testClasses)
                                              throws Exception
        Throws:
        Exception
    • Method Detail

      • getChunkSize

        public int getChunkSize()
        Description copied from interface: TestSuiteChunker
        Get the number of chunks defined in this suite.
        Specified by:
        getChunkSize in interface TestSuiteChunker
        Returns:
        The number of chunks defined in the correct suite.
      • getTestChunks

        public List<TestChunk> getTestChunks()
        Description copied from interface: TestSuiteChunker
        Get all chunk entries.
        Specified by:
        getTestChunks in interface TestSuiteChunker
        Returns:
        An set of entries that contains a list of methods contained in the chunk and the class loader that loaded these methods.
      • getTestChunksEntries

        public List<TestChunk> getTestChunksEntries​(Class<?> testClass)
        Get all chunk entries for a specific class.
        Specified by:
        getTestChunksEntries in interface TestSuiteChunker
        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

        public TestChunk getTestChunk​(Method method)
        Description copied from interface: TestSuiteChunker
        Get TestChunk for the given method.
        Specified by:
        getTestChunk in interface TestSuiteChunker
        Parameters:
        method - - method for which test chunk should be found.
        Returns:
        TestChunk for this method.
      • registerProxyframework

        protected void registerProxyframework​(ClassLoader classLoader)
      • getMockClassLoaderFactory

        protected org.powermock.tests.utils.impl.MockClassLoaderFactory getMockClassLoaderFactory​(Class<?> testClass,
                                                                                                  String[] preliminaryClassesToLoadByMockClassloader,
                                                                                                  String[] packagesToIgnore,
                                                                                                  MockTransformer[] extraMockTransformers)
      • testMethodAnnotation

        protected Class<? extends Annotation> testMethodAnnotation()