-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Implement cucumber expressions (#1248)
* Implements Cucumber expressions * Removes XStream * Adds DataTables from cucumber/common#291 * Introduces the concept of StepExpressions which combines a CucumberExpression and DataTable expression. Currently data table expressions are limited to a java type. Currently only the implicit type derived from the method argument is used. For a working example check the calculator examples.
- Loading branch information
1 parent
8c69975
commit a4a3ad5
Showing
217 changed files
with
2,647 additions
and
6,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
package cucumber.api; | ||
|
||
/** | ||
* Represents an argument in for a step definition. | ||
* <p> | ||
* The step definition {@code I have {long} cukes in my belly} | ||
* when matched with {@code I have 7 cukes in my belly} will produce | ||
* one argument with value {@code "4"}, starting at {@code 7} and | ||
* ending at {@code 8}. | ||
*/ | ||
public interface Argument { | ||
Integer getOffset(); | ||
String getValue(); | ||
|
||
String getVal(); | ||
int getStart(); | ||
|
||
int getEnd(); | ||
} |
Oops, something went wrong.