You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2019. It is now read-only.
Consider following step definition: @then("^I( don't)? see the Text "([^"]*)"$")
public void seeOrDoesntSeeText(String dont, String text) {
if (dont != null) {
assertFalse(seeText(text));
} else {
assertTrue(seeText(text));
}
}
This step definition should work with both
I see the Text "abc"
and
I doesn't see the Text "abc"
In Cuke4duke this produces IndexOutOfBounds exception in StepArgument class.
The problem is, that the matcher.start(1) returns -1, if "don't" not there. This causes wrong call to the StepArgument-constructor in the line
arguments.add(new StepArgument(matcher.group(i), matcher.start(i), stepName));
in the JdkPatternArgumentMatcher class.
The text was updated successfully, but these errors were encountered:
Have a look at #124 and the corresponding commit for a quick patch.
You can either check it out and build from source or wait for the pull request to be accepted.
Consider following step definition:
@then("^I( don't)? see the Text "([^"]*)"$")
public void seeOrDoesntSeeText(String dont, String text) {
if (dont != null) {
assertFalse(seeText(text));
} else {
assertTrue(seeText(text));
}
}
This step definition should work with both
and
In Cuke4duke this produces IndexOutOfBounds exception in StepArgument class.
The problem is, that the matcher.start(1) returns -1, if "don't" not there. This causes wrong call to the StepArgument-constructor in the line
in the JdkPatternArgumentMatcher class.
The text was updated successfully, but these errors were encountered: