Skip to content

Instantly share code, notes, and snippets.

@jonmcewen
Created November 18, 2015 14:14
Show Gist options
  • Save jonmcewen/2dccf5c8f266a3a95f0b to your computer and use it in GitHub Desktop.
Save jonmcewen/2dccf5c8f266a3a95f0b to your computer and use it in GitHub Desktop.
Example of a CucumberJVM step pattern for capturing a positive or negative number
@When("^an Adjustment of \\+?(-?\\d+) is received$")
public void an_Adjustment_of_x_is_received(int qty) throws Throwable {
//send "qty" as input
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment