use of com.github.tomakehurst.wiremock.testsupport.WireMockTestClient in project wiremock by wiremock.
the class PostServeActionExtensionTest method initWithOptions.
void initWithOptions(Options options) {
wm = new WireMockServer(options);
wm.start();
client = new WireMockTestClient(wm.port());
}
use of com.github.tomakehurst.wiremock.testsupport.WireMockTestClient in project wiremock by wiremock.
the class StubMappingPersistenceAcceptanceTest method init.
@BeforeEach
public void init() throws Exception {
rootDir = Files.createTempDirectory("temp-filesource");
mappingsDir = rootDir.resolve("mappings");
FileSource fileSource = new SingleRootFileSource(rootDir.toAbsolutePath().toString());
fileSource.createIfNecessary();
FileSource filesFileSource = fileSource.child(FILES_ROOT);
filesFileSource.createIfNecessary();
FileSource mappingsFileSource = fileSource.child(MAPPINGS_ROOT);
mappingsFileSource.createIfNecessary();
wireMockServer = new WireMockServer(wireMockConfig().fileSource(fileSource).dynamicPort());
wireMockServer.start();
testClient = new WireMockTestClient(wireMockServer.port());
WireMock.configureFor(wireMockServer.port());
wm = wireMockServer;
}
use of com.github.tomakehurst.wiremock.testsupport.WireMockTestClient in project wiremock by wiremock.
the class WireMockClientWithProxyAcceptanceTest method init.
@BeforeAll
public static void init() {
wireMockServer = new WireMockServer(DYNAMIC_PORT);
wireMockServer.start();
proxyServer = DefaultHttpProxyServer.bootstrap().withPort(0).start();
testClient = new WireMockTestClient(wireMockServer.port());
}
Aggregations