Class JUnitCoreProvider

    • Field Detail

      • testClassLoader

        private final java.lang.ClassLoader testClassLoader
      • customRunListeners

        private final java.lang.String customRunListeners
      • rerunFailingTestsCount

        private final int rerunFailingTestsCount
    • Method Detail

      • getSuites

        public java.lang.Iterable<java.lang.Class<?>> getSuites()
        Description copied from interface: SurefireProvider
        Determines the number of forks.
        Called when forkmode is different from "never" or "always", allows the provider to define how to behave for the fork.
        Returns:
        An iterator that will trigger one fork per item
      • isSingleThreaded

        private boolean isSingleThreaded()
      • invoke

        public RunResult invoke​(java.lang.Object forkTestSet)
                         throws TestSetFailedException
        Description copied from interface: SurefireProvider
        Runs a forked test
        Parameters:
        forkTestSet - An item from the iterator in #getSuites. Will be null for forkmode never or always. When this is non-null, the forked process will run only that test and probably not scan the classpath
        Returns:
        A result of the invocation
        Throws:
        TestSetFailedException - When testset fails
      • isRerunFailingTests

        private boolean isRerunFailingTests()
      • isFailFast

        private boolean isFailFast()
      • getSkipAfterFailureCount

        private int getSkipAfterFailureCount()
      • registerShutdownListener

        private void registerShutdownListener​(TestsToRun testsToRun)
      • registerPleaseStopJUnitListener

        private void registerPleaseStopJUnitListener​(Notifier stoppable)
      • isParallelMethodsAndTypes

        private boolean isParallelMethodsAndTypes()
      • isParallelTypes

        private boolean isParallelTypes()
      • scanClassPath

        private TestsToRun scanClassPath()