public abstract class AbstractBranchTestDescriptor extends AbstractFWDTestDescriptor
org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor, org.junit.platform.engine.support.hierarchical.Node.ExecutionMode, org.junit.platform.engine.support.hierarchical.Node.Invocation<C extends org.junit.platform.engine.support.hierarchical.EngineExecutionContext>, org.junit.platform.engine.support.hierarchical.Node.SkipResult| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<org.junit.platform.engine.TestDescriptor> |
children
Child descriptors
|
parent| Constructor and Description |
|---|
AbstractBranchTestDescriptor(org.junit.platform.engine.UniqueId uniqueId,
java.lang.String displayName,
java.util.Set<org.junit.platform.engine.TestTag> tags)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(org.junit.platform.engine.TestDescriptor descriptor)
Add a child to this descriptor.
|
java.util.Optional<? extends org.junit.platform.engine.TestDescriptor> |
findByUniqueId(org.junit.platform.engine.UniqueId uniqueId)
Find the descriptor with the supplied unique ID.
|
java.util.Set<? extends org.junit.platform.engine.TestDescriptor> |
getChildren()
Get the immutable set of children of this descriptor.
|
org.junit.platform.engine.TestDescriptor.Type |
getType()
Determine the
TestDescriptor.Type of this descriptor. |
void |
readExternal(java.io.ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
void |
removeChild(org.junit.platform.engine.TestDescriptor descriptor)
Remove a child from this descriptor.
|
void |
removeFromHierarchy()
Remove this non-root descriptor from its parent and remove all the
children from this descriptor.
|
void |
writeExternal(java.io.ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
after, afterImpl, before, beforeImpl, callLFMethodsImpl, callMethodImpl, callMethodImpl, checkInstance, cleanUp, cleanUpImpl, execute, executeImpl, getTags, getTags, getTestObject, prepare, prepareImpl, toStringequals, getDisplayName, getParent, getSource, getUniqueId, hashCode, print, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitaround, getExclusiveResources, getExecutionMode, nodeFinished, nodeSkipped, shouldBeSkippedprivate java.util.Set<org.junit.platform.engine.TestDescriptor> children
public AbstractBranchTestDescriptor(org.junit.platform.engine.UniqueId uniqueId,
java.lang.String displayName,
java.util.Set<org.junit.platform.engine.TestTag> tags)
uniqueId - this descriptor unique IDdisplayName - this descriptor display nametags - the tag setpublic void addChild(org.junit.platform.engine.TestDescriptor descriptor)
addChild in interface org.junit.platform.engine.TestDescriptoraddChild in class NoopDescriptordescriptor - the child to add to this descriptor; never nullpublic java.util.Optional<? extends org.junit.platform.engine.TestDescriptor> findByUniqueId(org.junit.platform.engine.UniqueId uniqueId)
The search algorithm begins with this descriptor and then searches through its descendants.
findByUniqueId in interface org.junit.platform.engine.TestDescriptorfindByUniqueId in class NoopDescriptoruniqueId - the UniqueId to search for; never nullpublic final java.util.Set<? extends org.junit.platform.engine.TestDescriptor> getChildren()
getChildren in interface org.junit.platform.engine.TestDescriptorgetChildren in class NoopDescriptornull
nor mutable, but potentially emptyTestDescriptor.getDescendants()public org.junit.platform.engine.TestDescriptor.Type getType()
TestDescriptor.Type of this descriptor.getType in interface org.junit.platform.engine.TestDescriptorgetType in class NoopDescriptornull.TestDescriptor.isContainer(),
TestDescriptor.isTest()public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class AbstractFWDTestDescriptorin - the stream to read data from in order to restore the objectjava.io.IOException - if I/O errors occurjava.lang.ClassNotFoundException - If the class for an object being
restored cannot be found.public void removeChild(org.junit.platform.engine.TestDescriptor descriptor)
removeChild in interface org.junit.platform.engine.TestDescriptorremoveChild in class NoopDescriptordescriptor - the child to remove from this descriptor; never
nullpublic void removeFromHierarchy()
If this method is invoked on a root descriptor,
this method must throw a JUnitException
explaining that a root cannot be removed from the
hierarchy.
removeFromHierarchy in interface org.junit.platform.engine.TestDescriptorremoveFromHierarchy in class NoopDescriptorpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class AbstractFWDTestDescriptorout - the stream to write the object tojava.io.IOException - Includes any I/O exceptions that may occur