Package com.eviware.soapui.impl.rest

Examples of com.eviware.soapui.impl.rest.RestResource


        return restRequest.getOperation().getInterface();
    }

    private void buildRestTestPanel() throws SoapUIException, RestRequestStepFactory.ItemDeletedException {
        StatefulModelItemFactory modelItemFactory = new StatefulModelItemFactory();
        RestResource restResource = createRestRequestModel(modelItemFactory);
        mockPromptDiaglog(restResource);
        RestTestRequestStep testStep = createRestTestReqStep(modelItemFactory, restResource);
        restTestDesktopPanel = new RestTestRequestDesktopPanel(testStep);
        endpointsCombo = findEndpointsComboBox();
    }
View Full Code Here


    }

    private RestResource createRestRequestModel(StatefulModelItemFactory modelItemFactory) throws SoapUIException {
        restRequest = modelItemFactory.makeRestRequest();
        restRequest.setMethod(RestRequestInterface.HttpMethod.GET);
        RestResource restResource = restRequest.getResource();
        restResource.getParams().addProperty(PARAMETER_NAME);
        restResource.addNewMethod(restRequest.getRestMethod().getName());
        RestMethodConfig restMethodConfig = restResource.getRestMethodList().get(0).getConfig();
        restMethodConfig.setMethod("GET");

        restService().addEndpoint(ENDPOINT);
        RestParamProperty restParamProperty = restRequest.getParams().getProperty(PARAMETER_NAME);
        restParamProperty.setValue(PARAMETER_VALUE);
View Full Code Here

                }
            });

            resourceCombo.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    RestResource resource = (RestResource) resourceCombo.getSelectedItem();
                    methodCombo.removeAllItems();
                    if (resource != null) {
                        methodCombo.setEnabled(true);
                        for (RestMethod method : resource.getRestMethodList()) {
                            methodCombo.addItem(method);
                        }
                    } else {
                        methodCombo.setEnabled(false);
                    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.rest.RestResource

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.