Skip to content

Fail WebappServiceLoader tests if nothing throws - #1161

Open
sharanggupta wants to merge 1 commit into
apache:mainfrom
sharanggupta:service-loader-tests-can-fail
Open

sharanggupta wants to merge 1 commit into
apache:mainfrom
sharanggupta:service-loader-tests-can-fail

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

testServiceIsNotExpectedType and testServiceCannotBeConstructed in TestWebappServiceLoader checked the cause only inside the catch block, so they passed when loadServices returned normally. This adds the Assert.fail("Expected IOException") that testServiceInitializationFailsWithLinkageError, the test between them, already has.

testServiceIsNotExpectedType and testServiceCannotBeConstructed checked
the cause only inside the catch block, so they passed when loadServices
returned normally. Add the Assert.fail() that
testServiceInitializationFailsWithLinkageError already has.
@arturobernalg

arturobernalg commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

+1

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