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

io.yawp.testing.RequestContextMock Maven / Gradle / Ivy

There is a newer version: 2.08alpha
Show newest version
package io.yawp.testing;


import io.yawp.commons.http.RequestContext;

import java.util.Map;

public class RequestContextMock extends RequestContext {

    public RequestContextMock() {
        super();
    }
    
    public static class Builder {

        private RequestContextMock mock = new RequestContextMock();

        public Builder() {
        }

        public Builder method(String method) {
            mock.method = method;
            return this;
        }

        public Builder uri(String uri) {
            mock.uri = uri;
            return this;
        }

        public Builder json(String json) {
            mock.json = json;
            return this;
        }

        public Builder params(Map params) {
            mock.params = params;
            return this;
        }


        public RequestContext build() {
            return mock;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy