Package com.github.tomakehurst.wiremock

Examples of com.github.tomakehurst.wiremock.WireMockServer


    FileSource filesFileSource = fileSource.child(FILES_ROOT);
    filesFileSource.createIfNecessary();
    FileSource mappingsFileSource = fileSource.child(MAPPINGS_ROOT);
    mappingsFileSource.createIfNecessary();

        wireMockServer = new WireMockServer(options);

        if (options.recordMappingsEnabled()) {
            wireMockServer.enableRecordMappings(mappingsFileSource, filesFileSource);
        }
View Full Code Here


public class WireMockStaticRule implements MethodRule {

  private final WireMockServer wireMockServer;
 
  public WireMockStaticRule(int port) {
    wireMockServer = new WireMockServer(port);
    wireMockServer.start();
    WireMock.configureFor("localhost", port);
  }
View Full Code Here

  private WireMockServer defaultServer;
  private WireMockServer altServer;
 
  @Before
  public void init() {
    defaultServer = new WireMockServer(0);
    defaultServer.start();
    altServer = new WireMockServer(0);
    altServer.start();
  }
View Full Code Here

  private WireMockServer wireMockServer;
  private WireMockTestClient testClient;
 
  @Before
  public void init() {
    wireMockServer = new WireMockServer();
    wireMockServer.start();
    WireMock.configure();
    testClient = new WireMockTestClient();
  }
View Full Code Here

TOP

Related Classes of com.github.tomakehurst.wiremock.WireMockServer

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.