Class PreStartTestEndingDetector

java.lang.Object
software.xdev.tci.factory.prestart.coordinator.endingdetector.PreStartTestEndingDetector
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

public class PreStartTestEndingDetector extends Object implements org.junit.platform.launcher.TestExecutionListener
Detects when tests are "ending" by monitoring if there are non-started tests.

If all tests have been started the tests are "ending" and the GlobalPreStartCoordinator is shut down to not PreStart infrastructure that will never be needed.

Active by default due to service loading.

  • Constructor Details

    • PreStartTestEndingDetector

      public PreStartTestEndingDetector()
  • Method Details

    • testPlanExecutionStarted

      public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • executionSkipped

      public void executionSkipped(org.junit.platform.launcher.TestIdentifier testIdentifier, String reason)
      Specified by:
      executionSkipped in interface org.junit.platform.launcher.TestExecutionListener
    • executionStarted

      public void executionStarted(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Specified by:
      executionStarted in interface org.junit.platform.launcher.TestExecutionListener
    • executionFinished

      public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
      Specified by:
      executionFinished in interface org.junit.platform.launcher.TestExecutionListener