Skip to content

Commit b4aa3c4

Browse files
committed
fixed test to not rely on HashMap's internal ordering
1 parent 85e9a9e commit b4aa3c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scribejava-core/src/test/java/com/github/scribejava/core/utils/MapUtilsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.github.scribejava.core.utils;
22

3+
import java.util.LinkedHashMap;
34
import java.util.HashMap;
45
import java.util.Map;
56
import org.junit.Assert;
@@ -9,7 +10,7 @@ public class MapUtilsTest {
910

1011
@Test
1112
public void shouldPrettyPrintMap() {
12-
final Map<Integer, String> map = new HashMap<>();
13+
final Map<Integer, String> map = new LinkedHashMap<>();
1314
map.put(1, "one");
1415
map.put(2, "two");
1516
map.put(3, "three");

0 commit comments

Comments
 (0)