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 TypeMethodDescriptionvoidAdd a client test descriptor to the plan - during dynamic test registration.voidadd(org.junit.platform.launcher.TestIdentifier testIdentifier) booleanlongcountTestIdentifiers(Predicate<? super org.junit.platform.launcher.TestIdentifier> predicate) org.junit.platform.engine.TestDescriptorfindDescriptor(String id) static Z2JupiterClientTestPlanSet<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:
addin classorg.junit.platform.launcher.TestPlan
-
getRoots
- Overrides:
getRootsin classorg.junit.platform.launcher.TestPlan
-
getParent
public Optional<org.junit.platform.launcher.TestIdentifier> getParent(org.junit.platform.launcher.TestIdentifier child) - Overrides:
getParentin classorg.junit.platform.launcher.TestPlan
-
getChildren
public Set<org.junit.platform.launcher.TestIdentifier> getChildren(org.junit.platform.launcher.TestIdentifier parent) - Overrides:
getChildrenin classorg.junit.platform.launcher.TestPlan
-
countTestIdentifiers
public long countTestIdentifiers(Predicate<? super org.junit.platform.launcher.TestIdentifier> predicate) - Overrides:
countTestIdentifiersin classorg.junit.platform.launcher.TestPlan
-
getDescendants
public Set<org.junit.platform.launcher.TestIdentifier> getDescendants(org.junit.platform.launcher.TestIdentifier parent) - Overrides:
getDescendantsin classorg.junit.platform.launcher.TestPlan
-
containsTests
public boolean containsTests()- Overrides:
containsTestsin classorg.junit.platform.launcher.TestPlan
-