Skip to content

Commit a467f62

Browse files
committed
fix test case, allow random order of references
1 parent 3f183e6 commit a467f62

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/beans/test/NamedReferencesProviderTest.java

+4-6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
package org.springframework.ide.vscode.boot.java.beans.test;
1212

1313
import static org.junit.Assert.assertEquals;
14+
import static org.junit.Assert.assertTrue;
1415

1516
import java.io.File;
1617
import java.util.List;
@@ -129,12 +130,9 @@ public class TestDependsOnClass {
129130

130131
List<? extends Location> references = editor.getReferences();
131132
assertEquals(2, references.size());
132-
133-
Location foundLocation1 = references.get(1);
134-
assertEquals(expectedLocation1, foundLocation1);
135-
136-
Location foundLocation2 = references.get(0);
137-
assertEquals(expectedLocation2, foundLocation2);
133+
134+
assertTrue(references.contains(expectedLocation1));
135+
assertTrue(references.contains(expectedLocation2));
138136
}
139137

140138
}

0 commit comments

Comments
 (0)