testing shutdown/restart

29 views
Skip to first unread message

William Burke

unread,
Oct 9, 2026, 11:23:53 AM (6 days ago) Oct 9
to Quarkus Development mailing list
Is there a clean easy way to test shutdown/restart logic within an extension test?

--
Bill Burke
IBM

William Burke

unread,
Oct 9, 2026, 11:28:17 AM (6 days ago) Oct 9
to Quarkus Development mailing list
Gonna try the Quarkus.exit methods and manualStart, but I'm a little nervous about that as static variables and such won't get wiped right?  and I won't have a clean test scenario.
--
Bill Burke
IBM

Holly Cummins

unread,
Oct 9, 2026, 12:53:31 PM (6 days ago) Oct 9
to quark...@googlegroups.com
It might be a case where you need to go out and have a mini project as a filtered resource. You could have a look at the subclasses of RunAndCheckMojoTestBase. 

I say this with caution, because those tests are way slower than the normal in-process tests. I’m responsible for most of the proliferation of them, but feel guilty about that. :) 


--
Holly Cummins
Partner Engineer, Senior Principal Quarkus Software Engineer, Sustainability Architect, Java Champion
Red Hat 

redhat.png

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/quarkus-dev/CAL%3DE%3DjSH1eK91cNRaTk4Uws5Zq%3DNoVZgCN0wTU3niNMq6PH-dQ%40mail.gmail.com.

William Burke

unread,
Oct 9, 2026, 1:15:16 PM (6 days ago) Oct 9
to quark...@googlegroups.com
Currently trying junit @Order annotation. Quarkus seems to start/stop with every extension test class.



--
Bill Burke
IBM

Georgios Andrianakis

unread,
Oct 10, 2026, 6:48:28 AM (5 days ago) Oct 10
to quark...@googlegroups.com
Wouldn't the QuarkusDevModeTest help here?

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages