Skip to content

Commit

Permalink
Merge pull request spring-projects#18580 from contextshuffling
Browse files Browse the repository at this point in the history
* pr/18580:
  Use LinkedHashSet for deterministic order in test assertions

Closes spring-projectsgh-18580
  • Loading branch information
snicoll committed Oct 15, 2019
2 parents 4d181c5 + efedd80 commit f6d5f77
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
Expand Down Expand Up @@ -439,7 +439,7 @@ public static class ExampleCollectionBean {

private List<String> items = new ArrayList<>();

private Set<String> itemsSet = new HashSet<>();
private Set<String> itemsSet = new LinkedHashSet<>();

public List<String> getItems() {
return this.items;
Expand Down

0 comments on commit f6d5f77

Please sign in to comment.