Skip to content

Commit 498ab58

Browse files
committed
added another test around difficult annotation attribute completion positions
1 parent e7d9d6d commit 498ab58

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,17 @@ public void testConditionalOnPropertyCompletionWithPrefixAndAttributeWithNameAtt
199199
assertEquals("prop3", completions.get(0).getTextEdit().getRight().getNewText());
200200
}
201201

202+
@Test
203+
@Disabled // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3260
204+
public void testConditionalOnPropertyCompletionWithPrefixAndAttributeWithNameAttributeAndSpaces() throws Exception {
205+
List<CompletionItem> completions = getCompletions("@ConditionalOnProperty(prefix = \"else\", name= <*>)");
206+
assertEquals(1, completions.size());
207+
208+
assertEquals("else.prop3", completions.get(0).getLabel());
209+
assertEquals("prop3", completions.get(0).getFilterText());
210+
assertEquals("prop3", completions.get(0).getTextEdit().getRight().getNewText());
211+
}
212+
202213
@Test
203214
public void testConditionalOnPropertyCompletionWithPrefixAndAttributeWithNameAttributeAndQuotes() throws Exception {
204215
List<CompletionItem> completions = getCompletions("@ConditionalOnProperty(prefix = \"else\", name=\"<*>\")");

0 commit comments

Comments
 (0)