All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smartbear.readyapi.client.teststeps.restrequest.RestRequestStepWithBodyBuilder Maven / Gradle / Ivy

Go to download

Java client library for creating and executing test recipes against Ready!API TestServer

There is a newer version: 1.2.1
Show 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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy