Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.RestResourceConfig


    }

    @Test
    public void removesFormerTemplateParametersFromPath() throws Exception {
        RestResourceConfig config = RestResourceConfig.Factory.newInstance();
        RestParametersConfig restParametersConfig = config.addNewParameters();
        RestParameterConfig parameterConfig = restParametersConfig.addNewParameter();
        String parameterName = "theName";
        parameterConfig.setName(parameterName);
        parameterConfig.setStyle(RestParameterConfig.Style.Enum.forInt(RestParamsPropertyHolder.ParameterStyle.TEMPLATE.ordinal()));
        config.setPath("/actual_path");

        RestResource restResource = new RestResource(parentService, config);
        restResource.getParams().getProperty(parameterName).setStyle(RestParamsPropertyHolder.ParameterStyle.QUERY);
        assertThat(restResource.getPath(), not(containsString(parameterName)));
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.RestResourceConfig

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.