Class StepDefinition
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.features.StepDefinition
 
- 
 public final class StepDefinition extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description StepDefinition(World world)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEachScenario()voidanUnsupportedTest()voidbeforeEachScenario(io.cucumber.java.Scenario scenario)static <T> org.hamcrest.Matcher<Iterable<? extends T>>contains(T... items)TinkerPop version of Hamcrest's {code contains} that can use our custom assertions forPath.static <T> org.hamcrest.Matcher<Iterable<? extends T>>containsInAnyOrder(T... items)TinkerPop version of Hamcrest's {code containsInAnyOrder} that can use our custom assertions forPath.voiddebugTheGraphShouldReturnForCountOf(Integer count, String gremlin)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.voiditeratedNext()voiditeratedToList()voidnothingShouldHappenBecause(String message)voidtheGraphInitializerOf(String gremlin)voidtheGraphShouldReturnForCountOf(Integer count, String gremlin)voidtheResultShouldBeEmpty()voidtheResultShouldBeOf(io.cucumber.datatable.DataTable dataTable)voidtheResultShouldBeOrdered(io.cucumber.datatable.DataTable dataTable)voidtheResultShouldBeUnordered(io.cucumber.datatable.DataTable dataTable)voidtheResultShouldHaveACountOf(Integer val)voidtheTraversalOf(String docString)voidtheTraversalWillRaiseAnError()voidtheTraversalWillRaiseAnErrorWithMessage(String comparison, String expectedMessage)voidusingTheParameterXDefinedAsX(String key, String value)voidusingTheParameterXOfPX(String key, String pval, String string)
 
- 
- 
- 
Constructor Detail- 
StepDefinition@Inject public StepDefinition(World world) 
 
- 
 - 
Method Detail- 
beforeEachScenariopublic void beforeEachScenario(io.cucumber.java.Scenario scenario) throws Exception- Throws:
- Exception
 
 - 
givenTheXGraph@Given("the {word} graph") public void givenTheXGraph(String graphName)
 - 
theGraphInitializerOf@Given("the graph initializer of") public void theGraphInitializerOf(String gremlin)
 - 
usingTheParameterXDefinedAsX@Given("using the parameter {word} defined as {string}") public void usingTheParameterXDefinedAsX(String key, String value)
 - 
usingTheParameterXOfPX@Given("using the parameter {word} of P.{word}\\({string})") public void usingTheParameterXOfPX(String key, String pval, String string)
 - 
theTraversalOf@Given("the traversal of") public void theTraversalOf(String docString)
 - 
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)
 - 
theGraphShouldReturnForCountOf@Then("the graph should return {int} for count of {string}") public void theGraphShouldReturnForCountOf(Integer count, String gremlin)
 - 
debugTheGraphShouldReturnForCountOf@Then("debug the graph should return {int} for count of {string}") public void debugTheGraphShouldReturnForCountOf(Integer count, String gremlin)
 - 
theResultShouldBeEmpty@Then("the result should be empty") public void theResultShouldBeEmpty()
 - 
theTraversalWillRaiseAnError@Then("the traversal will raise an error") public void theTraversalWillRaiseAnError()
 - 
theTraversalWillRaiseAnErrorWithMessage@Then("the traversal will raise an error with message {word} text of {string}") public void theTraversalWillRaiseAnErrorWithMessage(String comparison, String expectedMessage)
 - 
anUnsupportedTest@Given("an unsupported test") public void anUnsupportedTest()
 - 
nothingShouldHappenBecause@Then("nothing should happen because") public void nothingShouldHappenBecause(String message)
 - 
containsInAnyOrder@SafeVarargs public static <T> org.hamcrest.Matcher<Iterable<? extends T>> containsInAnyOrder(T... items) TinkerPop version of Hamcrest's {code containsInAnyOrder} that can use our custom assertions forPath.
 - 
contains@SafeVarargs public static <T> org.hamcrest.Matcher<Iterable<? extends T>> contains(T... items) TinkerPop version of Hamcrest's {code contains} that can use our custom assertions forPath.
 - 
inpublic static <T> org.hamcrest.Matcher<T> in(Collection<T> collection) TinkerPop version of Hamcrest's {code in} that can use our custom assertions forPath.
 - 
inpublic static <T> org.hamcrest.Matcher<T> in(T[] elements) TinkerPop version of Hamcrest's {code in} that can use our custom assertions forPath.
 
- 
 
-