Skip to content

test: extract nested mocks in webforj-devtools #1574 - #1584

Merged
hyyan merged 1 commit into
webforj:mainfrom
AzazelSensei:test-1574-extract-devtools-mocks
Sep 4, 2026
Merged

hyyan merged 1 commit into
webforj:mainfrom
AzazelSensei:test-1574-extract-devtools-mocks

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

I pulled the nested mock(...) calls in the webforj-devtools tests into local variables so they satisfy java:S9016.

Closes #1574

Pull mock(...) out of thenReturn so the listed java:S9016 findings
in webforj-devtools tests use a local variable.
@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 contributions

@hyyan
hyyan merged commit 415cfde 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address java:S9016 findings in webforj-devtools

2 participants