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

Make use proper assert functions in o.e.tips.tests... #90

Merged

Conversation

vrubezhny
Copy link
Contributor

..using Text Blocks etc. by moving to Java 17

..using Text Blocks etc. by moving to Java 17
@akurtakov akurtakov merged commit 45253f7 into eclipse-platform:master Feb 4, 2023
assertTrue(!testTip.equals(fTip));
assertTrue(testTip.equals(testTipx));
assertNotNull(testTip);
assertEquals(testTip, testTip.equals(testTip));
Copy link
Contributor

Choose a reason for hiding this comment

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

This is wrong! comparing boolean with Object.

@jukzi
Copy link
Contributor

jukzi commented Jun 6, 2023

@vrubezhny @akurtakov this causes regression:
org.eclipse.tips.core.TipTest.testEqualsObject() fails now on obviously wrong
assertEquals(testTip, testTip.equals(testTip));
i wonder why that test is not executed in CI

@vrubezhny
Copy link
Contributor Author

@jukzi Yes, you're right. PR #142 should fix the test, please review.

HeikoKlare added a commit to HeikoKlare/eclipse.platform that referenced this pull request Jan 22, 2024
This partly fixes initial bugs in the tests (as they have never been
executed in CI builds) and partly fixes regressions from
eclipse-platform/eclipse.platform.ua#90.
HeikoKlare added a commit to eclipse-platform/eclipse.platform that referenced this pull request Jan 22, 2024
This partly fixes initial bugs in the tests (as they have never been
executed in CI builds) and partly fixes regressions from
eclipse-platform/eclipse.platform.ua#90.
Michael5601 pushed a commit to CodeLtDave/eclipse.platform that referenced this pull request Feb 12, 2024
This partly fixes initial bugs in the tests (as they have never been
executed in CI builds) and partly fixes regressions from
eclipse-platform/eclipse.platform.ua#90.
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