Skip to content

test: extract nested WatchSession mocks #1577 - #1580

Merged
hyyan merged 1 commit into
webforj:mainfrom
AzazelSensei:test/s9016-watch-mocks-1577
Sep 4, 2026
Merged

hyyan merged 1 commit into
webforj:mainfrom
AzazelSensei:test/s9016-watch-mocks-1577

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

I pulled the nested mock(WatchSession.class) calls in WatchTaskTest and WatchMojoTest into local variables so they satisfy java:S9016.

Closes #1577

Sonar java:S9016 wants the mock created as a local variable.
@AzazelSensei
AzazelSensei requested a review from hyyan as a code owner September 4, 2026 09:29
@github-actions github-actions Bot added the module: plugins The change is in the plugins module label Sep 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@hyyan hyyan left a comment

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.

thanks @AzazelSensei for your contribution

@hyyan hyyan added this to the 26.03 milestone Sep 4, 2026
@hyyan
hyyan merged commit 035534d into webforj:main Sep 4, 2026
7 checks passed
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 81.54% 🍏

There is no coverage information present for the Files changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: plugins The change is in the plugins module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address java:S9016 findings in webforj-plugins

2 participants