com.smartbear.readyapi.client.teststeps.restrequest.RestRequestStepWithBodyBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ready-api-testserver-client Show documentation
Show all versions of ready-api-testserver-client Show documentation
Java client library for creating and executing test recipes against Ready!API TestServer
The newest version!
package com.smartbear.readyapi.client.teststeps.restrequest;
import com.smartbear.readyapi.client.teststeps.TestSteps;
public class RestRequestStepWithBodyBuilder extends RestRequestStepBuilder {
public RestRequestStepWithBodyBuilder(String uri, TestSteps.HttpMethod post) {
super(uri, post);
}
public RestRequestStepWithBodyBuilder withRequestBody(String requestBody) {
getTestStep().setRequestBody(requestBody);
return this;
}
public RestRequestStepWithBodyBuilder withMediaType(String mediaType) {
getTestStep().setMediaType(mediaType);
return this;
}
public RestRequestStepWithBodyBuilder withEncoding(String encoding) {
getTestStep().setEncoding(encoding);
return this;
}
}