Class MockServerProperties

java.lang.Object
org.mockserver.springboot.MockServerProperties

@ConfigurationProperties(prefix="mockserver") public class MockServerProperties extends Object
Configuration properties for the MockServer Spring Boot starter, bound from the mockserver.* namespace of the Spring Environment (application.properties / application.yml / system properties).

This starter is intended for local development and integration testing - it starts a real ClientAndServer inside the application context. It is disabled by default; set mockserver.enabled=true to switch it on.

  • Constructor Details

    • MockServerProperties

      public MockServerProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • getPort

      public Integer getPort()
    • setPort

      public void setPort(Integer port)
    • getInitializationJson

      public String getInitializationJson()
    • setInitializationJson

      public void setInitializationJson(String initializationJson)
    • getLogLevel

      public String getLogLevel()
    • setLogLevel

      public void setLogLevel(String logLevel)