Package com.github.tomakehurst.wiremock.core

Examples of com.github.tomakehurst.wiremock.core.WireMockConfiguration


    private WireMockServer wireMockServer;
    private HttpClient httpClient;

    private void startServerWithKeystore(String keystorePath) {
        WireMockConfiguration config = wireMockConfig().httpsPort(HTTPS_PORT);
        if (keystorePath != null) {
            config.keystorePath(keystorePath);
        }

        wireMockServer = new WireMockServer(config);
        wireMockServer.start();
        WireMock.configure();
View Full Code Here


    @Rule
    public final TemporaryFolder tempDir = new TemporaryFolder();

    @Test
    public void instantiationWithEmptyFileSource() throws IOException {
        Options options = new WireMockConfiguration().fileSource(new SingleRootFileSource(tempDir.getRoot()));

        WireMockServer wireMockServer = null;
        try {
            wireMockServer = new WireMockServer(options);
            wireMockServer.start();
View Full Code Here

        if (nonBindAddress == null) {
            Assert.fail("Impossible to validate the binding address. This machine has only a one Ip address ["
                    + localhost + "]");
        }

        WireMockConfiguration cfg = new WireMockConfiguration();
        cfg.bindAddress(localhost);
        cfg.port(port);

        wireMockServer = new WireMockServer(cfg);
        wireMockServer.start();
    }
View Full Code Here

TOP

Related Classes of com.github.tomakehurst.wiremock.core.WireMockConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.