Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify ResourceTest#ensureOutOfSync() and #readStringInFileSystem() #845

Merged

Conversation

HeikoKlare
Copy link
Contributor

@HeikoKlare HeikoKlare commented Nov 8, 2023

The utility methods ensureOutOfSync() and and readStringInFileSystem(IFile) in ResourceTests use a cascade of further utility methods with partly duplicated functionality. Those methods have protected visibility but do not have any consumers outside of ensureOutOfSync().

This change simplifies these methods and streamlines the contained assertions.

This is part of preparatory work for migrating the ResourceTests to JUnit 4.

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Test Results

     591 files  ±0       591 suites  ±0   1h 8m 15s ⏱️ - 1m 16s
  3 842 tests ±0    3 837 ✔️ ±0    5 💤 ±0  0 ±0 
12 132 runs  ±0  12 096 ✔️ ±0  36 💤 ±0  0 ±0 

Results for commit d5ceb0d. ± Comparison against base commit 549805e.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare changed the title Simplify ResourceTest#ensureOutOfSync() and its utility methods Simplify ResourceTest#ensureOutOfSync() and #readStringInFileSystem() Nov 8, 2023
@HeikoKlare HeikoKlare marked this pull request as ready for review November 16, 2023 17:21
The utility methods ensureOutOfSync() and readStringInFileSystem(IFile)
in ResourceTests use a cascade of further utility methods with partly
duplicated functionality. Those methods have protected visibility but do
not have any consumers outside of ensureOutOfSync().

This change simplifies these methods and streamlines the contained
assertions.
@HeikoKlare HeikoKlare merged commit 87311f1 into eclipse-platform:master Nov 29, 2023
16 checks passed
@HeikoKlare HeikoKlare deleted the simplify-ensureoutofsync branch November 29, 2023 13:20
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