You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes test failures introduced during the JUnit 5 migration
in PR #3410.
Changes in FilteringAsyncContentAssistTests.java:
- Changed import from org.junit.Ignore to org.junit.jupiter.api.Disabled
- Replaced @ignore annotation with @disabled annotation and added
reason message to properly skip the test
- The test was failing because JUnit 5 does not recognize JUnit 4's
@ignore annotation, causing a disabled test to run and fail
Changes in ResourceInitialSelectionTest.java:
- Migrated from JUnit 4 to JUnit 5 (file was missed in initial migration)
- Updated imports:
- org.junit.Assert → org.junit.jupiter.api.Assertions
- org.junit.Before → org.junit.jupiter.api.BeforeEach
- org.junit.After → org.junit.jupiter.api.AfterEach
- Changed annotations: @before → @beforeeach, @after → @AfterEach
- Fixed assertion parameter order for JUnit 5 (message parameter moved
from first to last position)
- All 13 tests now pass successfully
Test Results:
- FilteringAsyncContentAssistTests: 7 tests run, 0 failures, 1 properly skipped
- ResourceInitialSelectionTest: 13 tests run, 0 failures, 0 errors
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Copy file name to clipboardExpand all lines: tests/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/contentassist/FilteringAsyncContentAssistTests.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@
24
24
25
25
importorg.junit.jupiter.api.AfterEach;
26
26
importorg.junit.jupiter.api.BeforeEach;
27
-
importorg.junit.Ignore;
27
+
importorg.junit.jupiter.api.Disabled;
28
28
importorg.junit.jupiter.api.Test;
29
29
30
30
importorg.eclipse.swt.SWT;
@@ -288,7 +288,8 @@ public void testCA_WithFirstDelayedThenImmediateProposals() throws Exception {
288
288
*
289
289
* @throws Exception exception
290
290
*/
291
-
@Test@Ignore
291
+
@Test
292
+
@Disabled("Bug: filtering only applied after all CA processors have completed")
Copy file name to clipboardExpand all lines: tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/ResourceInitialSelectionTest.java
0 commit comments