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 TypeMethodDescriptionvoid
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
findDescriptor(String id)
static Z2JupiterClientTestPlan
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)
getId()
Optional<org.junit.platform.launcher.TestIdentifier>
getParent(org.junit.platform.launcher.TestIdentifier child)
Set<org.junit.platform.launcher.TestIdentifier>
getRoots()
Methods inherited from class org.junit.platform.launcher.TestPlan
accept, addInternal, from, getChildren, getChildren, getConfigurationParameters, getTestIdentifier, getTestIdentifier
-
Method Details
-
fromDto
-
getId
-
add
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 useTestIdentifier.from(TestDescriptor)
and have a good hierarchy (and there seems to be no other way to fix the parent of aTestIdentifier
). -
findDescriptor
-
add
public void add(org.junit.platform.launcher.TestIdentifier testIdentifier)- Overrides:
add
in classorg.junit.platform.launcher.TestPlan
-
getRoots
- Overrides:
getRoots
in classorg.junit.platform.launcher.TestPlan
-
getParent
public Optional<org.junit.platform.launcher.TestIdentifier> getParent(org.junit.platform.launcher.TestIdentifier child)- Overrides:
getParent
in classorg.junit.platform.launcher.TestPlan
-
getChildren
public Set<org.junit.platform.launcher.TestIdentifier> getChildren(org.junit.platform.launcher.TestIdentifier parent)- Overrides:
getChildren
in classorg.junit.platform.launcher.TestPlan
-
countTestIdentifiers
public long countTestIdentifiers(Predicate<? super org.junit.platform.launcher.TestIdentifier> predicate)- Overrides:
countTestIdentifiers
in classorg.junit.platform.launcher.TestPlan
-
getDescendants
public Set<org.junit.platform.launcher.TestIdentifier> getDescendants(org.junit.platform.launcher.TestIdentifier parent)- Overrides:
getDescendants
in classorg.junit.platform.launcher.TestPlan
-
containsTests
public boolean containsTests()- Overrides:
containsTests
in classorg.junit.platform.launcher.TestPlan
-