Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

The waitWhile() method for waiting until a condition is fulfilled is implemented as an instance method of AbstractDebugTest. The reason is that the test class instance itself is passed as a context to that method. This context, however, is not used by any of the method's consumers.

This change removes the unnecessary context from the waitWhile() method and simplifies all consumers accordingly. With that, the method in AbstractDebugTests degrades to a pure delegation to the same method in TestUtil, which is why the method is removed from the test superclass and consumers are adapted to directly call the method in TestUtil.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2026

Test Results

 1 956 files  ±0   1 956 suites  ±0   1h 31m 41s ⏱️ -33s
 4 743 tests ±0   4 719 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 229 runs  ±0  14 047 ✅ ±0  182 💤 ±0  0 ❌ ±0 

Results for commit 1817570. ± Comparison against base commit bd34de0.

♻️ This comment has been updated with latest results.

The waitWhile() method for waiting until a condition is fulfilled is
implemented as an instance method of AbstractDebugTest. The reason is
that the test class instance itself is passed as a context to that
method. This context, however, is not used by any of the method's
consumers.

This change removes the unnecessary context from the waitWhile() method
and simplifies all consumers accordingly. With that, the method in
AbstractDebugTests degrades to a pure delegation to the same method in
TestUtil, which is why the method is removed from the test superclass
and consumers are adapted to directly call the method in TestUtil.
@HeikoKlare HeikoKlare force-pushed the junit5-debugtests-waitwhile branch from 81f45c1 to 1817570 Compare January 3, 2026 14:25
@HeikoKlare HeikoKlare merged commit fe29dc3 into eclipse-platform:master Jan 3, 2026
18 checks passed
@HeikoKlare HeikoKlare deleted the junit5-debugtests-waitwhile branch January 3, 2026 15:08
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