Class CucumberTestDescriptor.PickleDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
io.cucumber.junit.platform.engine.CucumberTestDescriptor
io.cucumber.junit.platform.engine.CucumberTestDescriptor.PickleDescriptor
- All Implemented Interfaces:
org.junit.platform.engine.support.hierarchical.Node<CucumberEngineExecutionContext>,org.junit.platform.engine.TestDescriptor
- Enclosing class:
CucumberTestDescriptor
static final class CucumberTestDescriptor.PickleDescriptor
extends CucumberTestDescriptor
implements org.junit.platform.engine.support.hierarchical.Node<CucumberEngineExecutionContext>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.cucumber.junit.platform.engine.CucumberTestDescriptor
CucumberTestDescriptor.Builder, CucumberTestDescriptor.FeatureDescriptor, CucumberTestDescriptor.FeatureElementDescriptor, CucumberTestDescriptor.PickleDescriptorNested classes/interfaces inherited from interface org.junit.platform.engine.support.hierarchical.Node
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.SkipResultNested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor -
Field Summary
FieldsFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionPickleDescriptor(CucumberConfiguration configuration, org.junit.platform.engine.UniqueId uniqueId, String name, org.junit.platform.engine.TestSource source, Pickle pickle) -
Method Summary
Modifier and TypeMethodDescriptionexecute(CucumberEngineExecutionContext context, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor dynamicTestExecutor) Set<org.junit.platform.engine.support.hierarchical.ExclusiveResource> org.junit.platform.engine.support.hierarchical.Node.ExecutionModeprotected Location(package private) PickleSet<org.junit.platform.engine.TestTag> getTags()Returns the set of tags for a pickle.org.junit.platform.engine.TestDescriptor.TypegetType()protected URIgetUri()org.junit.platform.engine.support.hierarchical.Node.SkipResultprivate Optional<org.junit.platform.engine.support.hierarchical.Node.SkipResult> private Optional<org.junit.platform.engine.support.hierarchical.Node.SkipResult> Methods inherited from class io.cucumber.junit.platform.engine.CucumberTestDescriptor
builder, isFeatureSegmentMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, orderChildren, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.support.hierarchical.Node
after, around, before, cleanUp, isGlobalReadLockRequired, nodeFinished, nodeSkipped, prepareMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
pickle
-
configuration
-
-
Constructor Details
-
PickleDescriptor
PickleDescriptor(CucumberConfiguration configuration, org.junit.platform.engine.UniqueId uniqueId, String name, org.junit.platform.engine.TestSource source, Pickle pickle)
-
-
Method Details
-
getPickle
Pickle getPickle() -
getType
public org.junit.platform.engine.TestDescriptor.Type getType()- Specified by:
getTypein interfaceorg.junit.platform.engine.TestDescriptor
-
shouldBeSkipped
public org.junit.platform.engine.support.hierarchical.Node.SkipResult shouldBeSkipped(CucumberEngineExecutionContext context) - Specified by:
shouldBeSkippedin interfaceorg.junit.platform.engine.support.hierarchical.Node<CucumberEngineExecutionContext>
-
shouldBeSkippedByTagFilter
private Optional<org.junit.platform.engine.support.hierarchical.Node.SkipResult> shouldBeSkippedByTagFilter(CucumberEngineExecutionContext context) -
shouldBeSkippedByNameFilter
private Optional<org.junit.platform.engine.support.hierarchical.Node.SkipResult> shouldBeSkippedByNameFilter(CucumberEngineExecutionContext context) -
execute
public CucumberEngineExecutionContext execute(CucumberEngineExecutionContext context, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor dynamicTestExecutor) - Specified by:
executein interfaceorg.junit.platform.engine.support.hierarchical.Node<CucumberEngineExecutionContext>
-
getExclusiveResources
public Set<org.junit.platform.engine.support.hierarchical.ExclusiveResource> getExclusiveResources()- Specified by:
getExclusiveResourcesin interfaceorg.junit.platform.engine.support.hierarchical.Node<CucumberEngineExecutionContext>
-
getTags
Returns the set of tags for a pickle.Note that Cucumber will remove the {code @} symbol from all Gherkin tags. So a scenario tagged with
@Smokebecomes a test tagged withSmoke.- Specified by:
getTagsin interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getTagsin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor- Returns:
- the set of tags
-
getUri
- Specified by:
getUriin classCucumberTestDescriptor
-
getLocation
- Specified by:
getLocationin classCucumberTestDescriptor
-
getExecutionMode
public org.junit.platform.engine.support.hierarchical.Node.ExecutionMode getExecutionMode()- Specified by:
getExecutionModein interfaceorg.junit.platform.engine.support.hierarchical.Node<CucumberEngineExecutionContext>
-