Skip to content

3.0.0

Compare
Choose a tag to compare
@tomasbjerre tomasbjerre released this 09 Oct 18:05
· 25 commits to main since this release

This is the first release within WireMock organization. There are many changes, hopefully these are all of them.

Breaking changes

  • changing groupId from com.maciejwalkowiak.spring to org.wiremock.integrations
  • @ConfigureWireMock no longer has property or properties, replaced by baseUrlProperties
  • @ConfigureWireMock no longer has stubLocation, replaced by filesUnderClasspath

Features

  • simplify usage, you just need to annotate test with @EnableWireMock, it only needs @ConfigureWireMock when changing default behavior
  • default properties wiremock.server.baseUrl and wiremock.server.port
  • @ConfigureWireMock now has baseUrlProperties, a list of properties that should be populated with the url.
  • @ConfigureWireMock now has portProperties, a list of properties that should be populated with the port.
  • @ConfigureWireMock now has usePortFromPredefinedPropertyIfFound, it will set the port to value of any existing port property.
  • @ConfigureWireMock now has filesUnderClasspath and filesUnderDirectory, both are lists of locations where it looks for mappings.
  • @ConfigureWireMock now has default name wiremock
  • Each WireMock has its logging prefixed with its port number.
  • When only one WireMock, it will be configured as a client for that server (WireMock.configureFor(wireMockServer.port());)