Skip to content

test: extract nested mocks in foundation tests #1575 - #1583

Merged
hyyan merged 2 commits into
webforj:mainfrom
AzazelSensei:test/s9016-foundation-mocks-1575
Sep 4, 2026
Merged

hyyan merged 2 commits into
webforj:mainfrom
AzazelSensei:test/s9016-foundation-mocks-1575

Conversation

@AzazelSensei

Copy link
Copy Markdown
Contributor

I pulled the nested mock() calls in TabbedPaneTest, RouteRendererScenariosTest, RouteRendererTest, and RouterTest into local variables so they satisfy java:S9016.

Closes #1575

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 11:23
@github-actions github-actions Bot added the module: foundation The change is in the foundation module label Sep 4, 2026

@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 , Could you please run mvn spotless:apply and commit the resulting formatting changes? The Spotless check is currently failing

@AzazelSensei

Copy link
Copy Markdown
Contributor Author

Ran spotless on TabbedPaneTest and pushed the formatting change.

@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

@hyyan
hyyan merged commit 4b55d30 into webforj:main Sep 4, 2026
7 checks passed
@hyyan hyyan added this to the 26.03 milestone Sep 4, 2026
@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: foundation The change is in the foundation module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address java:S9016 findings in webforj-foundation

2 participants