Class WireMockContextCustomizer
java.lang.Object
com.maciejwalkowiak.wiremock.spring.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.- Author:
- Maciej Walkowiak
-
Constructor Summary
ConstructorsConstructorDescriptionWireMockContextCustomizer(ConfigureWireMock[] configurations) Creates an instance ofWireMockContextCustomizer.WireMockContextCustomizer(List<ConfigureWireMock> configurations) Creates an instance ofWireMockContextCustomizer. -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomizeContext(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig) booleaninthashCode()
-
Constructor Details
-
WireMockContextCustomizer
Creates an instance ofWireMockContextCustomizer.- Parameters:
configurations- the configurations
-
WireMockContextCustomizer
Creates an instance ofWireMockContextCustomizer.- Parameters:
configurations- the configurations
-
-
Method Details
-
customizeContext
public void customizeContext(org.springframework.context.ConfigurableApplicationContext context, org.springframework.test.context.MergedContextConfiguration mergedConfig) - Specified by:
customizeContextin interfaceorg.springframework.test.context.ContextCustomizer
-
equals
-
hashCode
public int hashCode()
-