Class TestRun


  • class TestRun
    extends java.lang.Object
    Since:
    4.12
    • Method Detail

      • getInProgressTestDescriptorsWithSyntheticStartEvents

        java.util.Collection<TestDescriptor> getInProgressTestDescriptorsWithSyntheticStartEvents()
      • isDescendantOfRunnerTestDescriptor

        boolean isDescendantOfRunnerTestDescriptor​(TestDescriptor testDescriptor)
      • lookupTestDescriptor

        java.util.Optional<VintageTestDescriptor> lookupTestDescriptor​(org.junit.runner.Description description)
        Returns the TestDescriptor that represents the specified Description.

        There are edge cases where multiple Descriptions with the same uniqueId exist, e.g. when using overloaded methods to define theories. In this case, we try to find the correct TestDescriptor by checking for object identity on the Description it represents.

        Parameters:
        description - the Description to look up
      • isNotSkipped

        boolean isNotSkipped​(TestDescriptor testDescriptor)
      • isNotStarted

        boolean isNotStarted​(TestDescriptor testDescriptor)
      • isNotFinished

        boolean isNotFinished​(TestDescriptor testDescriptor)
      • areAllFinishedOrSkipped

        boolean areAllFinishedOrSkipped​(java.util.Set<? extends TestDescriptor> testDescriptors)
      • isFinishedOrSkipped

        boolean isFinishedOrSkipped​(TestDescriptor testDescriptor)