diff --git a/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/beans/test/SpringIndexerJakartaJavaxAnnotationsTest.java b/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/beans/test/SpringIndexerJakartaJavaxAnnotationsTest.java index 64a1e63ec5..43f8d55d7d 100644 --- a/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/beans/test/SpringIndexerJakartaJavaxAnnotationsTest.java +++ b/headless-services/spring-boot-language-server/src/test/java/org/springframework/ide/vscode/boot/java/beans/test/SpringIndexerJakartaJavaxAnnotationsTest.java @@ -81,13 +81,13 @@ void testNamedAnnotationJakarta() throws Exception { String docUri = directory.toPath().resolve("src/main/java/org/test/jakarta/NamedComponentWithSpecificName.java").toUri().toString(); SpringIndexerHarness.assertDocumentSymbols(indexer, docUri, - SpringIndexerHarness.symbol("@Named(\"specificallyNamedComponent\")", "@+ 'namedComponentWithSpecificName' (@Named) NamedComponentWithSpecificName") + SpringIndexerHarness.symbol("@Named(\"specificallyNamedComponent\")", "@+ 'specificallyNamedComponent' (@Named) NamedComponentWithSpecificName") ); Bean[] beans = springIndex.getBeansOfDocument(docUri); assertEquals(1, beans.length); - assertEquals("namedComponentWithSpecificName", beans[0].getName()); + assertEquals("specificallyNamedComponent", beans[0].getName()); assertEquals("org.test.jakarta.NamedComponentWithSpecificName", beans[0].getType()); } @@ -96,13 +96,13 @@ void testNamedAnnotationJavax() throws Exception { String docUri = directory.toPath().resolve("src/main/java/org/test/javax/NamedComponentWithSpecificName.java").toUri().toString(); SpringIndexerHarness.assertDocumentSymbols(indexer, docUri, - SpringIndexerHarness.symbol("@Named(\"specificallyNamedComponent\")", "@+ 'namedComponentWithSpecificName' (@Named) NamedComponentWithSpecificName") + SpringIndexerHarness.symbol("@Named(\"specificallyNamedComponent\")", "@+ 'specificallyNamedComponent' (@Named) NamedComponentWithSpecificName") ); Bean[] beans = springIndex.getBeansOfDocument(docUri); assertEquals(1, beans.length); - assertEquals("namedComponentWithSpecificName", beans[0].getName()); + assertEquals("specificallyNamedComponent", beans[0].getName()); assertEquals("org.test.javax.NamedComponentWithSpecificName", beans[0].getType()); }