Package com.eviware.soapui.model.iface

Examples of com.eviware.soapui.model.iface.Interface


    }
  }

  private static void refreshEndpointList( Request request, String oldEndpoint, String newEndpoint )
  {
    Interface iface = request.getOperation().getInterface();
    for( String endpoint : iface.getEndpoints() )
    {
      if( endpoint.equals( oldEndpoint ) )
      {
        iface.changeEndpoint( endpoint, newEndpoint );
      }
    }
  }
View Full Code Here


  public WsdlMockOperation( WsdlMockService mockService, MockOperationConfig config )
  {
    super( config, mockService, "/mockOperation.gif" );

    Interface iface = mockService.getProject().getInterfaceByName( config.getInterface() );
    if( iface == null )
    {
      SoapUI.log.warn( "Missing interface [" + config.getInterface() + "] for MockOperation in project" );
    }
    else
    {
      operation = ( WsdlOperation )iface.getOperationByName( config.getOperation() );
    }

    List<MockResponseConfig> responseConfigs = config.getResponseList();
    for( MockResponseConfig responseConfig : responseConfigs )
    {
View Full Code Here

        internalProjectListener = new InternalProjectListener();
        project.addProjectListener(internalProjectListener);

        for (int c = 0; c < project.getInterfaceCount(); c++) {
            Interface iface = project.getInterfaceAt(c);
            interfaceNodes.add(new InterfaceTreeNode(iface, getTreeModel()));
        }

        for (int c = 0; c < project.getTestSuiteCount(); c++) {
            testSuiteNodes.add(new TestSuiteTreeNode(project.getTestSuiteAt(c), getTreeModel()));
View Full Code Here

        Project project = testCase.getTestSuite().getProject();
        List<String> options = new ArrayList<String>();
        TupleList<RestMethod, RestRequest> restMethods = new TupleList<RestMethod, RestRequest>();

        for (int c = 0; c < project.getInterfaceCount(); c++) {
            Interface iface = project.getInterfaceAt(c);
            if (iface instanceof RestService) {
                List<RestResource> resources = ((RestService) iface).getAllResources();

                for (RestResource resource : resources) {
                    // options.add( iface.getName() + " -> " + resource.getPath() );
                    // restMethods.add( resource, null );

                    for (RestMethod method : resource.getRestMethodList()) {
                        String methodStr = iface.getName() + " -> " + resource.getPath() + " -> " + method.getName();
                        restMethods.add(method, null);
                        options.add(methodStr);

                        for (RestRequest request : method.getRequestList()) {
                            restMethods.add(method, request);
View Full Code Here

    private ImageIcon solicitResponseIcon;

    public WsdlMockOperation(WsdlMockService mockService, MockOperationConfig config) {
        super(config, mockService, ICON_NAME);

        Interface iface = mockService.getProject().getInterfaceByName(config.getInterface());
        if (iface == null) {
            SoapUI.log.warn("Missing interface [" + config.getInterface() + "] for MockOperation in project");
        } else {
            operation = (WsdlOperation) iface.getOperationByName(config.getOperation());
        }

        List<MockResponseConfig> responseConfigs = config.getResponseList();
        for (MockResponseConfig responseConfig : responseConfigs) {
            WsdlMockResponse wsdlMockResponse = new WsdlMockResponse(this, responseConfig);
View Full Code Here

            SoapUI.log("JMS endpoint resolver changed endpoint pattern from " + oldEndpoint + "to " + newEndpoint);
        }
    }

    private static void refreshEndpointList(Request request, String oldEndpoint, String newEndpoint) {
        Interface iface = request.getOperation().getInterface();
        for (String endpoint : iface.getEndpoints()) {
            if (endpoint.equals(oldEndpoint)) {
                iface.changeEndpoint(endpoint, newEndpoint);
            }
        }
    }
View Full Code Here

        super("XmlBeans Classes", "Generates XmlBeans classes");
    }

    @Override
    public boolean applies(Interface target) {
        Interface iface = (Interface) target;
        return !iface.getProject().hasNature(Project.JBOSSWS_NATURE_ID);
    }
View Full Code Here

        super("JAXB 2.0 Artifacts", "Generates JAXB artifacts");
    }

    @Override
    public boolean applies(Interface target) {
        Interface iface = (Interface) target;
        return !iface.getProject().hasNature(Project.JBOSSWS_NATURE_ID);
    }
View Full Code Here

        super("JBossWS Artifacts", "Generates JBossWS artifacts using the jboss wstools utility");
    }

    @Override
    public boolean applies(Interface target) {
        Interface iface = (Interface) target;
        return !iface.getProject().hasNature(Project.JBOSSWS_NATURE_ID);
    }
View Full Code Here

        Project project = testCase.getTestSuite().getProject();
        List<String> options = new ArrayList<String>();
        List<Operation> operations = new ArrayList<Operation>();

        for (int c = 0; c < project.getInterfaceCount(); c++) {
            Interface iface = project.getInterfaceAt(c);
            for (int i = 0; i < iface.getOperationCount(); i++) {
                options.add(iface.getName() + " -> " + iface.getOperationAt(i).getName());
                operations.add(iface.getOperationAt(i));
            }
        }

        Object op = UISupport.prompt("Select operation to invoke for request", "New TestRequest", options.toArray());
        if (op != null) {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.iface.Interface

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.