Skip to content

Commit 6caac67

Browse files
committed
GH-1431: fix tests, failed due to newly added test data in the test project
1 parent 025382b commit 6caac67

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,20 @@ public class CustomEventListener {
8484
}""", tempJavaDocUri);
8585

8686
List<? extends Location> references = editor.getReferences();
87-
assertEquals(2, references.size());
87+
assertEquals(3, references.size());
8888

8989
String expectedDefinitionUri1 = directory.toPath().resolve("src/main/java/com/example/events/demo/CustomEventPublisher.java").toUri().toString();
9090
Location expectedLocation1 = new Location(expectedDefinitionUri1, new Range(new Position(15, 2), new Position(15, 48)));
91-
9291
assertTrue(references.contains(expectedLocation1));
9392

9493
// from type hierarchy of specialzed custom event
9594
String expectedDefinitionUri2 = directory.toPath().resolve("src/main/java/com/example/events/demo/SpecializedCustomEventPublisher.java").toUri().toString();
9695
Location expectedLocation2 = new Location(expectedDefinitionUri2, new Range(new Position(15, 2), new Position(15, 59)));
97-
9896
assertTrue(references.contains(expectedLocation2));
97+
98+
String expectedDefinitionUri3 = directory.toPath().resolve("src/main/java/com/example/events/demo/CustomEventPublisherWithAdditionalElements.java").toUri().toString();
99+
Location expectedLocation3 = new Location(expectedDefinitionUri3, new Range(new Position(17, 2), new Position(17, 48)));
100+
assertTrue(references.contains(expectedLocation3));
99101
}
100102

101103
@Test

0 commit comments

Comments
 (0)