Examples of ResponseDefinitionBuilder


Examples of com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder

  public static ResponseDefinition created() {
    return new ResponseDefinition(HTTP_CREATED, (byte[])null);
  }

    public static ResponseDefinition redirectTo(String path) {
        return new ResponseDefinitionBuilder()
                .withHeader("Location", path)
                .withStatus(HTTP_MOVED_TEMP)
                .build();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.