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

Migrate JFace Viewer tests to JUnit 4 #1222

Merged

Conversation

HeikoKlare
Copy link
Contributor

  • Migrates the tests in org.eclipse.jface.tests.viewer to JUnit 4
  • Replaces some test method precondition checks with assume calls
  • Replaces test name access with TestName rule

@github-actions
Copy link
Contributor

github-actions bot commented Oct 14, 2023

Test Results

     899 files  +     899       899 suites  +899   1h 31m 4s ⏱️ + 1h 31m 4s
  7 449 tests +  7 449    7 292 ✔️ +  7 292  156 💤 +156  1 +1 
21 935 runs  +21 935  21 539 ✔️ +21 539  395 💤 +395  1 +1 

For more details on these failures, see this check.

Results for commit 1bba52c. ± Comparison against base commit 5f47dac.

♻️ This comment has been updated with latest results.

* Migrates the tests in org.eclipse.jface.tests.viewer to JUnit 4
* Replaces some test method precondition checks with assume calls
* Replaces test name access with TestName rule
@HeikoKlare HeikoKlare marked this pull request as ready for review October 16, 2023 09:23
@@ -275,6 +292,7 @@ public void testGetBackground() {
// getDecoratingStyledLabelProvider().getBackground(ti));
}

@Test
public void testGetFont() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be removed in another PR

@@ -229,6 +247,7 @@ public void testRefreshWithDuplicateChild() {
* expanded, B is not - A gets deleted - B gets expanded because it reused A's
* item
*/
@Test
public void testRefreshWithReusedItems() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be removed in another PR

@@ -272,6 +293,7 @@ public void testSetExpandedWithCycle() {
* Test for Bug 41710 - assertion that an object may not be added to a given
* TreeItem more than once.
*/
@Test
public void testSetDuplicateChild() {
// Widget root = fViewer.testFindItem(fRootElement);
// assertNotNull(root);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove

@vogella
Copy link
Contributor

vogella commented Oct 17, 2023

Error failure documented here #1005

@vogella vogella merged commit 324afa5 into eclipse-platform:master Oct 17, 2023
14 of 16 checks passed
@vogella
Copy link
Contributor

vogella commented Oct 17, 2023

Thanks @HeikoKlare

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.

3 participants