-
-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datatable-java: Header only datatable does not convert to empty list #537
Comments
I'm having trouble working out why you'd get an error. Can you include the error, your step definition and your type registry configuration? |
I'm using only default converters. Add this test to
It fails although this test |
Cheers. That made it easy to spot. I'll have to think about the solution. It's a bit hard to explain. |
What do you think of this? https://github.com/cucumber/cucumber/pull/540/files Because of it |
Looks good for me |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
Summary
In cucumber v2 header only datatables
| firstName | lastName | birthDate |
converts to empty list. In cucumber v4.2.0 there is exception thrown in such case.This could have changed in be42d30. @mpkorstanje could you tell if this is really a bug or expected behaviour currently.
However converting
List<Map<String, Integer>>
in such case works.Possible Solution
Change
DataTableTypeRegistryTableConverter
to handle this situationThe text was updated successfully, but these errors were encountered: