Class InternalTestPlan


  • class InternalTestPlan
    extends TestPlan
    Since:
    1.4
    • Field Detail

      • executionStarted

        private final java.util.concurrent.atomic.AtomicBoolean executionStarted
      • delegate

        private final TestPlan delegate
    • Method Detail

      • markStarted

        void markStarted()
      • getDelegate

        public TestPlan getDelegate()
      • add

        public void add​(TestIdentifier testIdentifier)
        Description copied from class: TestPlan
        Add the supplied TestIdentifier to this test plan.
        Overrides:
        add in class TestPlan
        Parameters:
        testIdentifier - the identifier to add; never null
      • getParent

        public java.util.Optional<TestIdentifier> getParent​(TestIdentifier child)
        Description copied from class: TestPlan
        Get the parent of the supplied TestIdentifier.
        Overrides:
        getParent in class TestPlan
        Parameters:
        child - the identifier to look up the parent for; never null
        Returns:
        an Optional containing the parent, if present
      • getChildren

        public java.util.Set<TestIdentifier> getChildren​(java.lang.String parentId)
        Description copied from class: TestPlan
        Get the children of the supplied unique ID.
        Overrides:
        getChildren in class TestPlan
        Parameters:
        parentId - the unique ID to look up the children for; never null or blank
        Returns:
        an unmodifiable set of the parent's children, potentially empty
        See Also:
        TestPlan.getChildren(TestIdentifier)
      • getTestIdentifier

        public TestIdentifier getTestIdentifier​(java.lang.String uniqueId)
                                         throws org.junit.platform.commons.PreconditionViolationException
        Description copied from class: TestPlan
        Get the TestIdentifier with the supplied unique ID.
        Overrides:
        getTestIdentifier in class TestPlan
        Parameters:
        uniqueId - the unique ID to look up the identifier for; never null or blank
        Returns:
        the identifier with the supplied unique ID; never null
        Throws:
        org.junit.platform.commons.PreconditionViolationException - if no TestIdentifier with the supplied unique ID is present in this test plan
      • getTestIdentifier

        public TestIdentifier getTestIdentifier​(UniqueId uniqueId)
        Description copied from class: TestPlan
        Get the TestIdentifier with the supplied unique ID.
        Overrides:
        getTestIdentifier in class TestPlan
        Parameters:
        uniqueId - the unique ID to look up the identifier for; never null
        Returns:
        the identifier with the supplied unique ID; never null
      • countTestIdentifiers

        public long countTestIdentifiers​(java.util.function.Predicate<? super TestIdentifier> predicate)
        Description copied from class: TestPlan
        Count all TestIdentifiers that satisfy the given predicate.
        Overrides:
        countTestIdentifiers in class TestPlan
        Parameters:
        predicate - a predicate which returns true for identifiers to be counted; never null
        Returns:
        the number of identifiers that satisfy the supplied predicate
      • getDescendants

        public java.util.Set<TestIdentifier> getDescendants​(TestIdentifier parent)
        Description copied from class: TestPlan
        Get all descendants of the supplied TestIdentifier (i.e., all of its children and their children, recursively).
        Overrides:
        getDescendants in class TestPlan
        Parameters:
        parent - the identifier to look up the descendants for; never null
        Returns:
        an unmodifiable set of the parent's descendants, potentially empty