Example of testing ValidationPhaseBuildItem.ValidationErrorBuildItem?

9 views
Skip to first unread message

William Burke

unread,
Jul 30, 2025, 3:39:23 PMJul 30
to Quarkus Development mailing list
I'm adding some validation to an extension.  How can I unit test it?  Can somebody point me to an example test that does this?

I want to give a set of classes in the project (I know how to do that).  These set of classes will either cause a build error or be successful.  I want to test both scenarios.

Hope I'm making sense,

Thanks,

Bill

--
Bill Burke
IBM

William Burke

unread,
Jul 30, 2025, 4:29:54 PMJul 30
to Quarkus Development mailing list
Nevermind, found it in QuarkusUnitTest.assertExceptions
--
Bill Burke
IBM
Reply all
Reply to author
Forward
0 new messages