Class ConfigLauncherSession

java.lang.Object
io.quarkus.test.config.ConfigLauncherSession
All Implemented Interfaces:
org.junit.platform.launcher.LauncherSessionListener

public class ConfigLauncherSession extends Object implements org.junit.platform.launcher.LauncherSessionListener
A JUnit LauncherSessionListener, used to register the initial test config. Test set up code can safely call ConfigProvider.getConfig() to retrieve an instance of the Quarkus configuration.

The test config only contains sources known at bootstrap test time. For instance, config sources generated by Quarkus are not available in the test config.

  • Constructor Details

    • ConfigLauncherSession

      public ConfigLauncherSession()
  • Method Details

    • launcherSessionOpened

      public void launcherSessionOpened(org.junit.platform.launcher.LauncherSession session)
      Specified by:
      launcherSessionOpened in interface org.junit.platform.launcher.LauncherSessionListener
    • launcherSessionClosed

      public void launcherSessionClosed(org.junit.platform.launcher.LauncherSession session)
      Specified by:
      launcherSessionClosed in interface org.junit.platform.launcher.LauncherSessionListener