Skip to content

Migrate org.eclipse.ui.workbench.texteditor.tests to JUnit 5#3718

Open
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:wb.texteditor.tests
Open

Migrate org.eclipse.ui.workbench.texteditor.tests to JUnit 5#3718
vogella wants to merge 1 commit intoeclipse-platform:masterfrom
vogella:wb.texteditor.tests

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Feb 2, 2026

Code Changes:
* Replaced JUnit 4 imports (e.g., org.junit.Test,
org.junit.Assert) with JUnit 5 equivalents (org.junit.jupiter.api.Test, org.junit.jupiter.api.Assertions).
* Updated lifecycle annotations (@before -> @beforeeach, @after
-> @AfterEach).
* Updated assertEquals and assertFalse/assertTrue calls to match
JUnit 5's argument order (expected, actual, message / condition, message).
* Replaced ExpectedException usage and try-catch-fail blocks with
Assertions.assertThrows.
* Replaced @rule public TestName with TestInfo injection in test
methods and setup methods.
* Updated TextEditorPluginTest to use
@TestMethodOrder(MethodOrderer.MethodName.class) instead of @FixMethodOrder.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Test Results

 3 024 files   3 024 suites   2h 13m 51s ⏱️
 8 232 tests  7 983 ✅ 248 💤 1 ❌
23 520 runs  22 728 ✅ 791 💤 1 ❌

For more details on these failures, see this check.

Results for commit 31c4ddf.

♻️ This comment has been updated with latest results.

@vogella vogella force-pushed the wb.texteditor.tests branch from b1dde02 to 65f9cad Compare February 2, 2026 14:55
@vogella vogella force-pushed the wb.texteditor.tests branch from a3724d7 to 5f2fc4e Compare February 3, 2026 11:10
@vogella vogella force-pushed the wb.texteditor.tests branch from 5f2fc4e to 2336d9f Compare February 3, 2026 12:10
Copy link
Member

@akurtakov akurtakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Please merge when tests succeed.

@vogella
Copy link
Contributor Author

vogella commented Feb 3, 2026

Thanks for the review @akurtakov

@vogella vogella force-pushed the wb.texteditor.tests branch from 2336d9f to 31c4ddf Compare February 3, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants