Skip to content

Commit 6440121

Browse files
committed
Merge branch '2.1.x'
Closes gh-18614
2 parents 6af56a8 + 4eaa387 commit 6440121

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/CompositeHealthIndicatorTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Collections;
2020
import java.util.HashMap;
21+
import java.util.LinkedHashMap;
2122
import java.util.Map;
2223

2324
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -72,7 +73,7 @@ void createWithIndicators() {
7273

7374
@Test
7475
void testSerialization() throws Exception {
75-
Map<String, HealthIndicator> indicators = new HashMap<>();
76+
Map<String, HealthIndicator> indicators = new LinkedHashMap<>();
7677
indicators.put("db1", this.one);
7778
indicators.put("db2", this.two);
7879
CompositeHealthIndicator innerComposite = new CompositeHealthIndicator(this.healthAggregator, indicators);

0 commit comments

Comments
 (0)