Class WireMockContextCustomizer

java.lang.Object
org.wiremock.spring.internal.WireMockContextCustomizer
All Implemented Interfaces:
org.springframework.test.context.ContextCustomizer

public class WireMockContextCustomizer extends Object implements org.springframework.test.context.ContextCustomizer
Attaches properties with urls pointing to WireMockServer instances to the Spring Environment.
  • Constructor Details

  • Method Details

    • customizeContext

      public void customizeContext(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig)
      Specified by:
      customizeContext in interface org.springframework.test.context.ContextCustomizer
    • equals

      public boolean equals(Object o)
      The docs in ContextCustomizer states that equals and hashcode is being used for caching and needs implementation. The customizeContext method will not be invoked for all tests, because of caching.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object