For a Behavior test that I'm trying to write, I require inputs that are floating point. How do I set up my gherkin string to look for these values?
Simple (.+)
should work
Given I have a floating point 1.2345 number
@Given("^I have a floating point (.+) number$")
public void I_have_a_floating_point_number(double arg) throws Throwable {
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With