use of com.github.tomakehurst.wiremock.standalone.WireMockServerRunner in project wiremock by wiremock.
the class StandaloneAcceptanceTest method startRunner.
private void startRunner(String... args) {
runner = new WireMockServerRunner();
runner.run(argsWithPort(argsWithRecordingsPath(args)));
int port = runner.port();
testClient = new WireMockTestClient(port);
WireMock.configureFor(port);
}
use of com.github.tomakehurst.wiremock.standalone.WireMockServerRunner in project wiremock by wiremock.
the class StandaloneAcceptanceTest method isRunningReturnsFalseBeforeRunMethodIsExecuted.
@Test
public void isRunningReturnsFalseBeforeRunMethodIsExecuted() {
runner = new WireMockServerRunner();
assertThat(runner.isRunning(), is(false));
}
use of com.github.tomakehurst.wiremock.standalone.WireMockServerRunner in project wiremock by wiremock.
the class StandaloneAcceptanceTest method init.
@BeforeEach
public void init() throws Exception {
if (FILE_SOURCE_ROOT.exists()) {
FileUtils.deleteDirectory(FILE_SOURCE_ROOT);
}
FILE_SOURCE_ROOT.mkdirs();
mappingsDirectory = new File(FILE_SOURCE_ROOT, MAPPINGS);
filesDirectory = new File(FILE_SOURCE_ROOT, FILES);
runner = new WireMockServerRunner();
WireMock.configure();
}
Aggregations