Browse Source

Use LinkedHashSet for deterministic order in test assertions

See gh-18580
pull/18566/head
contextshuffling 6 years ago committed by Stephane Nicoll
parent
commit
efedd80d4b
  1. 4
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java

4
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java

@ -19,7 +19,7 @@ package org.springframework.boot.context.properties.bind; @@ -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 { @@ -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;

Loading…
Cancel
Save