Skip to content

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Dec 28, 2025

Migrates 10 tests in org.eclipse.ui.tests from CloseTestWindowsRule (JUnit 4) to CloseTestWindowsExtension (JUnit 5).

Changes include:

  • Replacing CloseTestWindowsRule with CloseTestWindowsExtension.
  • Updating imports to JUnit 5.
  • Converting annotations: @Rule -> @ExtendWith, @Ignore -> @Disabled, @Before -> @BeforeEach.
  • Updating assertions to match JUnit 5 argument order (message last).

Tests migrated:

  • Bug43321Test
  • Bug53489Test
  • Bug44460Test
  • Bug41931Test
  • ActionExpressionTest
  • Bug40023Test
  • Bug36537Test
  • PerspectiveSwitcherTest
  • TextHandlerTest
  • StickyViewManagerTest

public final CloseTestWindowsRule closeTestWindowsRule = new CloseTestWindowsRule();

@Rule
public final PreferenceMementoRule preferenceMemento = new PreferenceMementoRule();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one should also be migrated to Junit 5

@vogella
Copy link
Contributor Author

vogella commented Dec 28, 2025

PreferenceMementoRule should also be migrated to Junit 5

@github-actions
Copy link
Contributor

github-actions bot commented Dec 28, 2025

Test Results

 3 015 files   3 015 suites   2h 9m 13s ⏱️
 8 258 tests  8 008 ✅ 248 💤 1 ❌ 1 🔥
23 574 runs  22 779 ✅ 791 💤 1 ❌ 3 🔥

For more details on these failures and errors, see this check.

Results for commit ef718b0.

♻️ This comment has been updated with latest results.

@vogella vogella force-pushed the migrate-closetestwindows-junit5-part2 branch from 11532d5 to 53f48f9 Compare January 1, 2026 16:15
Migrated 10 tests in org.eclipse.ui.tests from using CloseTestWindowsRule
(JUnit 4) to CloseTestWindowsExtension (JUnit 5).
Updates include replacing imports, annotations (@rule -> @ExtendWith,
@ignore -> @disabled, @before -> @beforeeach), and updating assertion
argument order.
@vogella vogella force-pushed the migrate-closetestwindows-junit5-part2 branch from 53f48f9 to ef718b0 Compare January 1, 2026 17:21
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.

1 participant