From efedd80d4bf4acd71ddd274163ade401fc1bf8db Mon Sep 17 00:00:00 2001 From: contextshuffling Date: Mon, 14 Oct 2019 16:14:10 -0500 Subject: [PATCH] Use LinkedHashSet for deterministic order in test assertions See gh-18580 --- .../boot/context/properties/bind/CollectionBinderTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java index e31ee99826..111f207247 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java +++ b/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; 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 items = new ArrayList<>(); - private Set itemsSet = new HashSet<>(); + private Set itemsSet = new LinkedHashSet<>(); public List getItems() { return this.items;