Skip to content

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Nov 4, 2025

Updated WorkbenchContextRule from JUnit 4 MethodRule to JUnit 5 Extension by implementing BeforeEachCallback, AfterEachCallback, and TestInstancePostProcessor interfaces.

Updated all tests using WorkbenchContextRule to JUnit 5:

  • Changed @rule to @RegisterExtension
  • Updated imports from org.junit to org.junit.jupiter.api
  • Changed Assert to Assertions
  • Changed Assume to Assumptions
  • Changed @before to @beforeeach
  • Changed @ignore to @disabled

Files updated:

  • WorkbenchContextRule.java (rule implementation)
  • MMenuItemTest.java
  • MWindowTest.java
  • MPartTest.java
  • ModelServiceImplTest.java
  • MToolItemTest.java
  • MSaveablePartTest.java
  • CompositePartClosingTest.java
  • PartRenderingEngineTests.java
  • PartOnTopManagerTest.java
  • MenuManagerRendererTest.java
  • ToolBarManagerRendererTest.java
  • StackRendererTest.java

Updated WorkbenchContextRule from JUnit 4 MethodRule to JUnit 5 Extension
by implementing BeforeEachCallback, AfterEachCallback, and
TestInstancePostProcessor interfaces.

Updated all tests using WorkbenchContextRule to JUnit 5:
- Changed @rule to @RegisterExtension
- Updated imports from org.junit to org.junit.jupiter.api
- Changed Assert to Assertions
- Changed Assume to Assumptions
- Changed @before to @beforeeach
- Changed @ignore to @disabled

Files updated:
- WorkbenchContextRule.java (rule implementation)
- MMenuItemTest.java
- MWindowTest.java
- MPartTest.java
- ModelServiceImplTest.java
- MToolItemTest.java
- MSaveablePartTest.java
- CompositePartClosingTest.java
- PartRenderingEngineTests.java
- PartOnTopManagerTest.java
- MenuManagerRendererTest.java
- ToolBarManagerRendererTest.java
- StackRendererTest.java
@vogella vogella marked this pull request as draft November 4, 2025 21:30
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Test Results

 2 865 files   -   153   2 865 suites   - 153   2h 15m 37s ⏱️ - 2m 29s
 7 242 tests  -   992   7 003 ✅  -   982  238 💤  - 11  1 ❌ +1 
20 646 runs   - 2 976  19 900 ✅  - 2 928  745 💤  - 49  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 1cd6953. ± Comparison against base commit 9c171a0.

This pull request removes 992 tests.
UIAllTests AreaRendererTest ‑ testMultipleStacksUnderTheAreaCreateACTabFolder
UIAllTests AreaRendererTest ‑ testStackInsideMCompositePartDoesNotCreateACTabFolder
UIAllTests Bug299755Test ‑ testBug299755
UIAllTests Bug308220Test ‑ testBug308220
UIAllTests Bug308317Test ‑ testBug308317
UIAllTests Bug320857Test ‑ testBug320857
UIAllTests CompositePartClosingTest ‑ test_partClosing
UIAllTests ContextTest ‑ testOneContext
UIAllTests ContextTest ‑ testThreeContexts
UIAllTests ContextTest ‑ testTwoContexts
…

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