Interface WireMockServerBuildTimeConfig


@ConfigMapping(prefix="quarkus.wiremock.devservices") @ConfigRoot public interface WireMockServerBuildTimeConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     
    boolean
    If Dev Services for WireMock has been explicitly enabled or disabled.
    boolean
    Control whether WireMock Extension service loading, is enabled.
    Path to the WireMock configuration files (root dir which contains the mappings and __files folders).
    boolean
    Response templating is enabled by default in WireMock 3, with this setting response templating can be enabled globally.
    default boolean
     
    Optional fixed port the WireMock Dev Service will listen to.
    boolean
    Restart WireMock Dev Service whenever Quarkus is reloaded.
  • Method Details

    • enabled

      @WithDefault("true") boolean enabled()
      If Dev Services for WireMock has been explicitly enabled or disabled.
    • reload

      @WithDefault("true") boolean reload()
      Restart WireMock Dev Service whenever Quarkus is reloaded. Otherwise, whenever files are changed in the files-mapping location you would need to restart the Dev Service (WireMock server) manually.
    • port

      OptionalInt port()
      Optional fixed port the WireMock Dev Service will listen to. If not defined, the port will be chosen randomly.

      WARNING: Only ports between 1025 and 65535 are permitted.

    • filesMapping

      @WithDefault("src/test/resources") String filesMapping()
      Path to the WireMock configuration files (root dir which contains the mappings and __files folders). If this starts with classpath: then files will be looked up on the classpath instead of the filesystem.
    • globalResponseTemplating

      @WithDefault("false") boolean globalResponseTemplating()
      Response templating is enabled by default in WireMock 3, with this setting response templating can be enabled globally.

      Please refer to Response Templating for more details.

    • extensionScanningEnabled

      @WithDefault("false") boolean extensionScanningEnabled()
      Control whether WireMock Extension service loading, is enabled.
    • isClasspathFilesMapping

      default boolean isClasspathFilesMapping()
    • effectiveFileMapping

      default String effectiveFileMapping()