Skip to content

Commit

Permalink
added another test around difficult annotation attribute completion p…
Browse files Browse the repository at this point in the history
…ositions
  • Loading branch information
martinlippert committed Dec 11, 2024
1 parent e7d9d6d commit 498ab58
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ public void testConditionalOnPropertyCompletionWithPrefixAndAttributeWithNameAtt
assertEquals("prop3", completions.get(0).getTextEdit().getRight().getNewText());
}

@Test
@Disabled // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3260
public void testConditionalOnPropertyCompletionWithPrefixAndAttributeWithNameAttributeAndSpaces() throws Exception {
List<CompletionItem> completions = getCompletions("@ConditionalOnProperty(prefix = \"else\", name= <*>)");
assertEquals(1, completions.size());

assertEquals("else.prop3", completions.get(0).getLabel());
assertEquals("prop3", completions.get(0).getFilterText());
assertEquals("prop3", completions.get(0).getTextEdit().getRight().getNewText());
}

@Test
public void testConditionalOnPropertyCompletionWithPrefixAndAttributeWithNameAttributeAndQuotes() throws Exception {
List<CompletionItem> completions = getCompletions("@ConditionalOnProperty(prefix = \"else\", name=\"<*>\")");
Expand Down

0 comments on commit 498ab58

Please sign in to comment.