Skip to content

Avoid reporting discovery warnings for abstract methods #4668

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

Merged

Conversation

marcphilipp
Copy link
Member

Overview

Resolves #4636.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

Sorry, something went wrong.

method.toGenericString());
assertThat(discoveryIssues.getLast().message()) //
var issue = getOnlyElement(discoveryIssues);
assertThat(issue.message()) //

Choose a reason for hiding this comment

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

// is this necessary?

Copy link
Member

Choose a reason for hiding this comment

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

In some, much more than I like, cases like this, yes. It's due to a limitation of the underlying code formatter being used: spotless

Copy link
Member Author

Choose a reason for hiding this comment

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

To be precise, Spotless is not to blame but the Eclipse JDT formatter we have configured it to use.

@marcphilipp marcphilipp force-pushed the marc/4636-no-discovery-issues-for-abstract-methods branch from 1b9875b to b4a9bad Compare June 24, 2025 06:29

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp
Resolves #4636.
@marcphilipp marcphilipp force-pushed the marc/4636-no-discovery-issues-for-abstract-methods branch from b4a9bad to 9be3b20 Compare June 24, 2025 06:42
@marcphilipp marcphilipp merged commit 16d7fa7 into main Jun 24, 2025
13 checks passed
@marcphilipp marcphilipp deleted the marc/4636-no-discovery-issues-for-abstract-methods branch June 24, 2025 07:05
marcphilipp added a commit that referenced this pull request Jun 24, 2025

Verified

This commit was signed with the committer’s verified signature.
marcphilipp Marc Philipp
Resolves #4636.

(cherry picked from commit 16d7fa7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discovery issue incorrectly reported for abstract @Test method in abstract class
3 participants