Skip to content

test: cover admin ui resource handler registration#5511

Merged
SteKoe merged 3 commits into
codecentric:masterfrom
amirdeljouyi:pr-tests-adminserveruiautoconfiguration
Jul 11, 2026
Merged

test: cover admin ui resource handler registration#5511
SteKoe merged 3 commits into
codecentric:masterfrom
amirdeljouyi:pr-tests-adminserveruiautoconfiguration

Conversation

@amirdeljouyi

Copy link
Copy Markdown
Contributor

Hi,

I added two focused tests for the UI resource handler configuration.

Impact on coverage:

Why:

They make sure the servlet and reactive configs can register the main UI assets and extension asset handlers with the configured locations.

I hope you find these tests useful. 😄 Please let me know if you have any questions or concerns.

Thanks,

@amirdeljouyi amirdeljouyi requested a review from a team as a code owner July 4, 2026 21:01
@SteKoe

SteKoe commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Hi @amirdeljouyi,

thanks for your PR! I have changed the assertions as your tests were not as meaningful as possible. Both tests only assert doesNotThrowAnyException(). This is a smoke test, not a behavior test, which is more appropriate. Nothing verifies the registered handler paths (/, /extensions/) or the configured resource locations. A regression that swaps the two handlers, drops the extension handler, or uses the wrong locations would still pass. The tests don't back up the stated intent.

Again, thanks for your PR, keep on! :)

@SteKoe SteKoe enabled auto-merge (squash) July 11, 2026 11:46
@SteKoe SteKoe merged commit 3d8d3da into codecentric:master Jul 11, 2026
1 check passed
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