Interface QuarkusComponentTestCallbacks


public interface QuarkusComponentTestCallbacks
This service provider can be used to contribute additional logic to QuarkusComponentTestExtension.

The implementations should be stateless. Callbacks are invoked in this order:

  1. beforeIndex(BeforeIndexContext)
  2. beforeBuild(BeforeBuildContext)
  3. beforeStart(BeforeStartContext)
  4. afterStart(AfterStartContext)
  5. afterStop(AfterStopContext)
There are no other guarantees regarding instantiation, lifecycle and thread-safety.
  • Method Details

    • beforeIndex

      default void beforeIndex(QuarkusComponentTestCallbacks.BeforeIndexContext beforeIndexContext)
      Called before the bean archive index is built.

      The bean archive index is built before the container is built.

      Parameters:
      beforeIndexContext -
    • beforeBuild

      default void beforeBuild(QuarkusComponentTestCallbacks.BeforeBuildContext beforeBuildContext)
      Called before the container is built.

      The container is built before the test class is loaded.

      Parameters:
      beforeBuildContext -
    • beforeStart

      default void beforeStart(QuarkusComponentTestCallbacks.BeforeStartContext beforeStartContext)
      Called before the container is started.

      If TestInstance.Lifecycle.PER_METHOD is used (default) then the container is started during the before each test phase. If TestInstance.Lifecycle.PER_CLASS is used then the container is started during the before all test phase.

      Parameters:
      beforeStartContext -
    • afterStart

      default void afterStart(QuarkusComponentTestCallbacks.AfterStartContext afterStartContext)
      Called after the container is started.

      If TestInstance.Lifecycle.PER_METHOD is used (default) then the container is started during the before each test phase. If TestInstance.Lifecycle.PER_CLASS is used then the container is started during the before all test phase.

      Parameters:
      afterStartContext -
    • afterStop

      default void afterStop(QuarkusComponentTestCallbacks.AfterStopContext afterStopContext)
      Called after the container is stopped.

      If TestInstance.Lifecycle.PER_METHOD is used (default) then the container is stopped during the after each test phase. If TestInstance.Lifecycle.PER_CLASS is used then the container is during the after all test phase.

      Parameters:
      afterStopContext -