Class JUnit4TestSuiteChunkerImpl

    • Field Detail

      • testMethodAnnotation

        private static final java.lang.Class<? extends java.lang.annotation.Annotation> testMethodAnnotation
      • description

        private org.junit.runner.Description description
    • Constructor Detail

      • JUnit4TestSuiteChunkerImpl

        public JUnit4TestSuiteChunkerImpl​(java.lang.Class<?> testClass,
                                          java.lang.Class<? extends PowerMockJUnitRunnerDelegate> runnerDelegateImplementationType)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • run

        public void run​(org.junit.runner.notification.RunNotifier notifier)
        Specified by:
        run in interface JUnit4TestSuiteChunker
      • 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.
        Specified by:
        shouldExecuteTestForMethod in interface TestSuiteChunker
        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.
      • getTestCount

        public int getTestCount()
        Description copied from interface: RunnerTestSuiteChunker
        Get the number of total tests defined in the suite (the sum of all tests defined in all chunks for this suite).
        Specified by:
        getTestCount in interface RunnerTestSuiteChunker
        Returns:
        The number of tests in this suite.
      • filter

        public void filter​(org.junit.runner.manipulation.Filter filter)
                    throws org.junit.runner.manipulation.NoTestsRemainException
        Specified by:
        filter in interface org.junit.runner.manipulation.Filterable
        Throws:
        org.junit.runner.manipulation.NoTestsRemainException
      • sort

        public void sort​(org.junit.runner.manipulation.Sorter sorter)
        Specified by:
        sort in interface org.junit.runner.manipulation.Sortable