assertThat(params.getProperty("queryParam").getStyle(), is(QUERY));
}
@Test
public void expandsRestRequestPathsWithoutTemplateParameters() throws Exception {
RestRequest restRequest = makeRestRequest();
restRequest.getResource().setPath("/the/path");
addParameter(restRequest, RestParamsPropertyHolder.ParameterStyle.QUERY, "queryName", "queryValue");
addParameter(restRequest, RestParamsPropertyHolder.ParameterStyle.MATRIX, "matrixName", "theMatrixValue");
addParameter(restRequest, TEMPLATE, "templateName", "templateValue");
addParameter(restRequest, RestParamsPropertyHolder.ParameterStyle.MATRIX, "matrixName2", "theMatrixValue2");
addParameter(restRequest, RestParamsPropertyHolder.ParameterStyle.QUERY, "queryName2", "queryValue2");
assertThat(RestUtils.expandPath("/the/path", restRequest.getParams(), restRequest),
is("/the/path;matrixName=theMatrixValue;matrixName2=theMatrixValue2?queryName=queryValue&queryName2=queryValue2"));
}