This repository has been archived by the owner on Sep 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datatable/java: Allow Object and String datatable types to be redefin…
…ed (#885) This enables the following in Cucumber-JVM: ```feature Feature: Whitespace Scenario: Whitespace in a table Given a blank value | key | value | | a | [blank] | ``` ```java @given("A blank value") public void given_a_blank_value(Map<String, String> map){ // map contains { "key":"a", "value": ""} } @DataTableType(replaceWithEmptyString = "[blank]") public String listOfStringListsType(String cell) { return cell; } ``` Note that this only applies to `String` and `Object` the other build in types can not be redefined. Though this could be considered if a clear usecase is presented. See: cucumber/cucumber-jvm#1884
- Loading branch information
1 parent
c8e4d6b
commit 4ac2165
Showing
3 changed files
with
49 additions
and
6 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