mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 01:39:02 +00:00
Use LinkedHashSet for deterministic order in test assertions
See gh-18580
This commit is contained in:
committed by
Stephane Nicoll
parent
4d181c5b6b
commit
efedd80d4b
+2
-2
@@ -19,7 +19,7 @@ package org.springframework.boot.context.properties.bind;
|
||||
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;
|
||||
@@ -439,7 +439,7 @@ public class CollectionBinderTests {
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user