Skip to content

Refactor tests to avoid direct test invocation - #12648

Merged
snazy merged 1 commit into
projectnessie:mainfrom
snazy:warning-split/04-direct-test-invocation
Jun 30, 2026
Merged

snazy merged 1 commit into
projectnessie:mainfrom
snazy:warning-split/04-direct-test-invocation

Conversation

@snazy

@snazy snazy commented Jun 27, 2026

Copy link
Copy Markdown
Member

No description provided.

@Test
void testAcceptedBySubscribers() {
super.testAcceptedBySubscribers();
acceptedBySubscribers();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this a problem? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

A new warning saying "do not call @Test functions" 🤷

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Warning from javac?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

checkstyle IIRC

@snazy
snazy merged commit 5496c8f into projectnessie:main Jun 30, 2026
16 checks passed
@snazy
snazy deleted the warning-split/04-direct-test-invocation branch June 30, 2026 15:36
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.

2 participants