Class ClassCoercingTestProfile

java.lang.Object
io.quarkus.test.junit.ClassCoercingTestProfile
All Implemented Interfaces:
QuarkusTestProfile

public class ClassCoercingTestProfile extends Object implements QuarkusTestProfile
  • Constructor Details

    • ClassCoercingTestProfile

      public ClassCoercingTestProfile(Object uncast)
  • Method Details

    • getEnabledAlternatives

      public Set<Class<?>> getEnabledAlternatives()
      Description copied from interface: QuarkusTestProfile
      Returns enabled alternatives. This has the same effect as setting the 'quarkus.arc.selected-alternatives' config key, however it may be more convenient.
      Specified by:
      getEnabledAlternatives in interface QuarkusTestProfile
    • getConfigOverrides

      public Map<String,String> getConfigOverrides()
      Description copied from interface: QuarkusTestProfile
      Returns additional config to be applied to the test. This will override any existing config (including in application.properties), however existing config will be merged with this (i.e. application.properties config will still take effect, unless a specific config key has been overridden).
      Specified by:
      getConfigOverrides in interface QuarkusTestProfile
    • getConfigProfile

      public String getConfigProfile()
      Description copied from interface: QuarkusTestProfile
      Allows the default config profile to be overridden. This basically just sets the quarkus.test.profile system property before the test is run.
      Specified by:
      getConfigProfile in interface QuarkusTestProfile
    • testResources

      public List<QuarkusTestProfile.TestResourceEntry> testResources()
      Description copied from interface: QuarkusTestProfile
      Additional QuarkusTestResourceLifecycleManager classes (along with their init params) to be used from this specific test profile. If this method is not overridden, then only the QuarkusTestResourceLifecycleManager classes enabled via the QuarkusTestResource class annotation will be used for the tests using this profile (which is the same behavior as tests that don't use a profile at all).
      Specified by:
      testResources in interface QuarkusTestProfile
    • disableGlobalTestResources

      public boolean disableGlobalTestResources()
      Description copied from interface: QuarkusTestProfile
      If this returns true then only the test resources returned from QuarkusTestProfile.testResources() will be started, global annotated test resources will be ignored.
      Specified by:
      disableGlobalTestResources in interface QuarkusTestProfile
    • tags

      public Set<String> tags()
      Description copied from interface: QuarkusTestProfile
      The tags this profile is associated with. When the quarkus.test.profile.tags System property is set (its value is a comma separated list of strings) then Quarkus will only execute tests that are annotated with a @TestProfile that has at least one of the supplied (via the aforementioned system property) tags.
      Specified by:
      tags in interface QuarkusTestProfile
    • commandLineParameters

      public String[] commandLineParameters()
      Description copied from interface: QuarkusTestProfile
      The command line parameters that are passed to the main method on startup. This is ignored for QuarkusMainTest, which has its own way of passing parameters.
      Specified by:
      commandLineParameters in interface QuarkusTestProfile
    • runMainMethod

      public boolean runMainMethod()
      Description copied from interface: QuarkusTestProfile
      If the main method should be run. This is ignored for QuarkusMainTest, where the main method is always run.
      Specified by:
      runMainMethod in interface QuarkusTestProfile
    • disableApplicationLifecycleObservers

      public boolean disableApplicationLifecycleObservers()
      Description copied from interface: QuarkusTestProfile
      If this method returns true then all StartupEvent and ShutdownEvent observers declared on application beans should be disabled.
      Specified by:
      disableApplicationLifecycleObservers in interface QuarkusTestProfile