Class Z2JupiterClientTestPlan

java.lang.Object
org.junit.platform.launcher.TestPlan
com.zfabrik.dev.z2jupiter.internal.client.Z2JupiterClientTestPlan

public class Z2JupiterClientTestPlan extends org.junit.platform.launcher.TestPlan
Client side TestPlan implementation derived from a server side discovered TestPlan conveyed to the client as Z2JupiterTestPlanDto.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.junit.platform.launcher.TestPlan

    org.junit.platform.launcher.TestPlan.Visitor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a client test descriptor to the plan - during dynamic test registration.
    void
    add​(org.junit.platform.launcher.TestIdentifier testIdentifier)
     
    boolean
     
    long
    countTestIdentifiers​(Predicate<? super org.junit.platform.launcher.TestIdentifier> predicate)
     
    org.junit.platform.engine.TestDescriptor
     
     
    Set<org.junit.platform.launcher.TestIdentifier>
    getChildren​(org.junit.platform.launcher.TestIdentifier parent)
     
    Set<org.junit.platform.launcher.TestIdentifier>
    getDescendants​(org.junit.platform.launcher.TestIdentifier parent)
     
     
    Optional<org.junit.platform.launcher.TestIdentifier>
    getParent​(org.junit.platform.launcher.TestIdentifier child)
     
    Set<org.junit.platform.launcher.TestIdentifier>
     

    Methods inherited from class org.junit.platform.launcher.TestPlan

    accept, addInternal, from, getChildren, getChildren, getConfigurationParameters, getTestIdentifier, getTestIdentifier

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fromDto

      public static Z2JupiterClientTestPlan fromDto(Z2JupiterTestPlanDto tp)
    • getId

      public String getId()
    • add

      public void add(Z2JupiterClientTestDescriptor d)
      Add a client test descriptor to the plan - during dynamic test registration. We add by descriptor so that we can track (which we need for parent test descriptor resolution so... that we can use TestIdentifier.from(TestDescriptor) and have a good hierarchy (and there seems to be no other way to fix the parent of a TestIdentifier).
    • findDescriptor

      public org.junit.platform.engine.TestDescriptor findDescriptor(String id)
    • add

      public void add(org.junit.platform.launcher.TestIdentifier testIdentifier)
      Overrides:
      add in class org.junit.platform.launcher.TestPlan
    • getRoots

      public Set<org.junit.platform.launcher.TestIdentifier> getRoots()
      Overrides:
      getRoots in class org.junit.platform.launcher.TestPlan
    • getParent

      public Optional<org.junit.platform.launcher.TestIdentifier> getParent(org.junit.platform.launcher.TestIdentifier child)
      Overrides:
      getParent in class org.junit.platform.launcher.TestPlan
    • getChildren

      public Set<org.junit.platform.launcher.TestIdentifier> getChildren(org.junit.platform.launcher.TestIdentifier parent)
      Overrides:
      getChildren in class org.junit.platform.launcher.TestPlan
    • countTestIdentifiers

      public long countTestIdentifiers(Predicate<? super org.junit.platform.launcher.TestIdentifier> predicate)
      Overrides:
      countTestIdentifiers in class org.junit.platform.launcher.TestPlan
    • getDescendants

      public Set<org.junit.platform.launcher.TestIdentifier> getDescendants(org.junit.platform.launcher.TestIdentifier parent)
      Overrides:
      getDescendants in class org.junit.platform.launcher.TestPlan
    • containsTests

      public boolean containsTests()
      Overrides:
      containsTests in class org.junit.platform.launcher.TestPlan