Class StepDefinition
java.lang.Object
org.apache.tinkerpop.gremlin.features.StepDefinition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbeforeEachScenario(io.cucumber.java.Scenario scenario) static <T> org.hamcrest.Matcher<Iterable<? extends T>>contains(T... items) static <T> org.hamcrest.Matcher<Iterable<? extends T>>containsInAnyOrder(T... items) voidgivenTheXGraph(String graphName) static <T> org.hamcrest.Matcher<T>in(Collection<T> collection) TinkerPop version of Hamcrest's {code in} that can use our custom assertions forPath.static <T> org.hamcrest.Matcher<T>in(T[] elements) TinkerPop version of Hamcrest's {code in} that can use our custom assertions forPath.voidvoidvoidnothingShouldHappenBecause(String message) List<org.apache.tinkerpop.gremlin.features.StepDefinition.TreeNode>Parse the tree structure as taken from the Gherkin feature file.voidtheFileXShouldExist(String fileName) voidtheGraphInitializerOf(String gremlin) voidtheGraphShouldBeATreeWithAStructureOf(String asciiTree) voidtheGraphShouldReturnForCountOf(Integer count, String rawGremlin) voidtheResultShouldBeASubgraphWithEdges(io.cucumber.datatable.DataTable dataTable) voidvoidtheResultShouldBeOf(io.cucumber.datatable.DataTable dataTable) voidtheResultShouldBeOrdered(io.cucumber.datatable.DataTable dataTable) voidtheResultShouldBeUnordered(io.cucumber.datatable.DataTable dataTable) voidvoidtheTraversalOf(String docString) voidvoidtheTraversalWillRaiseAnErrorWithMessage(String comparison, String expectedMessage) voidusingTheParameterXDefinedAsX(String key, String value) voidusingTheSideEffectXDefinedAsX(String key, String value)
-
Constructor Details
-
StepDefinition
-
-
Method Details
-
beforeEachScenario
- Throws:
Exception
-
afterEachScenario
- Throws:
Exception
-
givenTheXGraph
-
theGraphInitializerOf
-
usingTheParameterXDefinedAsX
-
usingTheSideEffectXDefinedAsX
-
theTraversalOf
-
iteratedToList
@When("iterated to list") public void iteratedToList() -
iteratedNext
@When("iterated next") public void iteratedNext() -
theResultShouldBeUnordered
@Then("the result should be unordered") public void theResultShouldBeUnordered(io.cucumber.datatable.DataTable dataTable) -
theResultShouldBeOrdered
@Then("the result should be ordered") public void theResultShouldBeOrdered(io.cucumber.datatable.DataTable dataTable) -
theResultShouldBeOf
@Then("the result should be of") public void theResultShouldBeOf(io.cucumber.datatable.DataTable dataTable) -
theResultShouldHaveACountOf
@Then("the result should have a count of {int}") public void theResultShouldHaveACountOf(Integer val) -
theResultShouldBeASubgraphWithEdges
@Then("the result should be a subgraph with the following") public void theResultShouldBeASubgraphWithEdges(io.cucumber.datatable.DataTable dataTable) -
theGraphShouldBeATreeWithAStructureOf
@Then("the result should be a tree with a structure of") public void theGraphShouldBeATreeWithAStructureOf(String asciiTree) -
theGraphShouldReturnForCountOf
-
theResultShouldBeEmpty
@Then("the result should be empty") public void theResultShouldBeEmpty() -
theTraversalWillRaiseAnError
@Then("the traversal will raise an error") public void theTraversalWillRaiseAnError() -
theTraversalWillRaiseAnErrorWithMessage
-
theFileXShouldExist
-
anUnsupportedTest
@Given("an unsupported test") public void anUnsupportedTest() -
nothingShouldHappenBecause
-
containsInAnyOrder
@SafeVarargs public static <T> org.hamcrest.Matcher<Iterable<? extends T>> containsInAnyOrder(T... items) -
contains
-
in
TinkerPop version of Hamcrest's {code in} that can use our custom assertions forPath. -
in
public static <T> org.hamcrest.Matcher<T> in(T[] elements) TinkerPop version of Hamcrest's {code in} that can use our custom assertions forPath. -
parseTree
public List<org.apache.tinkerpop.gremlin.features.StepDefinition.TreeNode> parseTree(String asciiTree) Parse the tree structure as taken from the Gherkin feature file.
-