Package org.agorava.rest.HttpParametersImpl

Examples of org.agorava.rest.HttpParametersImpl.Parameter


    @Test
    public void shouldGetQueryStringParameters() {
        Assert.assertEquals(2, getRequest.getQueryStringParams().size());
        assertEquals(0, postRequest.getQueryStringParams().size());
        assertTrue(getRequest.getQueryStringParams().getParams().contains(new Parameter("qsparam", "value")));
    }
View Full Code Here


        assertEquals("http://example.com?one=val&two=other%20val&more=params", request.getCompleteUrl());
    }

    @Test
    public void shouldHandleQueryStringSpaceEncodingProperly() {
        assertTrue(getRequest.getQueryStringParams().getParams().contains(new Parameter("other param", "value with spaces")));
    }
View Full Code Here

TOP

Related Classes of org.agorava.rest.HttpParametersImpl.Parameter

Copyright © 2018 www.massapicom. 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.