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

org.mockserver.mappers.ExpectationMapper Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.mappers;

import org.mockserver.matchers.HttpRequestMatcher;
import org.mockserver.model.HttpRequest;

/**
 * @author jamesdbloom
 */
public class ExpectationMapper {

    public HttpRequestMatcher transformsToMatcher(HttpRequest httpRequest) {
        return new HttpRequestMatcher()
                .withPath(httpRequest.getPath())
                .withBody(httpRequest.getBody())
                .withHeaders(httpRequest.getHeaders())
                .withCookies(httpRequest.getCookies())
                .withParameters(httpRequest.getParameters());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy