Skip to content
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

Disregard order of HashMap entries in unit tests #739

Merged
merged 1 commit into from
Jun 25, 2014
Merged

Disregard order of HashMap entries in unit tests #739

merged 1 commit into from
Jun 25, 2014

Conversation

mchenryc
Copy link
Contributor

FormDataTableTest transforms_to_map_of_double_to_double should not rely on Map#toString() to test values in a Map, which relies on the order of the Map's EntrySet iterator. In the case of HashMaps, used by cucumber, that order is unpredictable, and (can be) different in Java8 from previous versions, causing tests to fail.

This patch tests the mapping directly, and disregards iteration order.

@aslakhellesoy
Copy link
Contributor

LGTM!

@mchenryc mchenryc mentioned this pull request Jun 25, 2014
@aslakhellesoy aslakhellesoy merged commit a6a4f65 into cucumber:master Jun 25, 2014
aslakhellesoy added a commit that referenced this pull request Jun 25, 2014
@mchenryc mchenryc deleted the ignore-hash-order branch June 28, 2014 16:05
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants