Skip to content

Commit

Permalink
filed and added corresponding JDT parser issues for disabled test cas…
Browse files Browse the repository at this point in the history
…es around code completion difficulties
  • Loading branch information
martinlippert committed Dec 9, 2024
1 parent 4e7dccb commit 7b83098
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void testConditionalOnPropertyCompletionForPrefix() throws Exception {
}

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

@Test
@Disabled
@Disabled // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3419
public void testConditionalOnPropertyCompletionWithEmptyPrefixAndEmptyNameAttribute() throws Exception {
List<CompletionItem> completions = getCompletions("@ConditionalOnProperty(prefix = , name = <*>)");
assertEquals(3, completions.size());
Expand All @@ -221,7 +221,7 @@ public void testConditionalOnPropertyCompletionWithEmptyPrefixAndEmptyNameAttrib
}

@Test
@Disabled
@Disabled // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3419
public void testConditionalOnPropertyCompletionWithEmptyPrefixAndEmptyNameAttributeInQuotes() throws Exception {
List<CompletionItem> completions = getCompletions("@ConditionalOnProperty(prefix = , name = \"<*>\")");
assertEquals(3, completions.size());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,8 @@ void testPlainPrefixCompletion() throws Exception {
assertClasspathCompletions();
}

// The parser removes the (spring.) piece from the AST in this case, so there is no way
// to clearly identify this case
@Test
@Disabled
@Disabled // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3420
void testComplexPrefixCompletionParamNameCursorRightAfterDot() throws Exception {
prepareCase("@Value(\"onField\")", "@Value(spring.<*>)");

Expand Down Expand Up @@ -321,19 +319,16 @@ void testPrefixCompletionWithParamName() throws Exception {
assertClasspathCompletions();
}

// The parser removes the (spring.) piece from the AST in this case, so there is no way
// to clearly identify this case
//
// @Test
// void testPrefixCompletionWithParamNameCursorRightAfterDot() throws Exception {
// prepareCase("@Value(\"onField\")", "@Value(value=spring.<*>)");
// prepareDefaultIndexData();
//
// assertPropertyCompletions(
// "@Value(value=\"${spring.prop1}\"<*>)");
//
// assertClasspathCompletions();
// }
@Test
@Disabled // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3421
void testPrefixCompletionWithParamNameCursorRightAfterDot() throws Exception {
prepareCase("@Value(\"onField\")", "@Value(value=spring.<*>)");

assertPropertyCompletions(
"@Value(value=\"${spring.prop1}\"<*>)");

assertClasspathCompletions();
}

@Test
void testComplexPrefixCompletionWithParamName() throws Exception {
Expand Down

0 comments on commit 7b83098

Please sign in to comment.