Interface QuarkusComponentTestCallbacks
QuarkusComponentTestExtension.
The implementations should be stateless. Callbacks are invoked in this order:
There are no other guarantees regarding instantiation, lifecycle and thread-safety.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterStart(QuarkusComponentTestCallbacks.AfterStartContext afterStartContext) Called after the container is started.default voidafterStop(QuarkusComponentTestCallbacks.AfterStopContext afterStopContext) Called after the container is stopped.default voidbeforeBuild(QuarkusComponentTestCallbacks.BeforeBuildContext beforeBuildContext) Called before the container is built.default voidbeforeIndex(QuarkusComponentTestCallbacks.BeforeIndexContext beforeIndexContext) Called before the bean archive index is built.default voidbeforeStart(QuarkusComponentTestCallbacks.BeforeStartContext beforeStartContext) Called before the container is started.
-
Method Details
-
beforeIndex
Called before the bean archive index is built.The bean archive index is built before the container is built.
- Parameters:
beforeIndexContext-
-
beforeBuild
Called before the container is built.The container is built before the test class is loaded.
- Parameters:
beforeBuildContext-
-
beforeStart
Called before the container is started.If
TestInstance.Lifecycle.PER_METHODis used (default) then the container is started during thebefore eachtest phase. IfTestInstance.Lifecycle.PER_CLASSis used then the container is started during thebefore alltest phase.- Parameters:
beforeStartContext-
-
afterStart
Called after the container is started.If
TestInstance.Lifecycle.PER_METHODis used (default) then the container is started during thebefore eachtest phase. IfTestInstance.Lifecycle.PER_CLASSis used then the container is started during thebefore alltest phase.- Parameters:
afterStartContext-
-
afterStop
Called after the container is stopped.If
TestInstance.Lifecycle.PER_METHODis used (default) then the container is stopped during theafter eachtest phase. IfTestInstance.Lifecycle.PER_CLASSis used then the container is during theafter alltest phase.- Parameters:
afterStopContext-
-