Package com.eviware.soapui.impl.wsdl.actions.mockservice

Examples of com.eviware.soapui.impl.wsdl.actions.mockservice.CloneMockServiceAction


  @Override
  boolean copyAfter( WsdlMockService source, WsdlProject target )
  {
    SoapUIAction<WsdlMockService> action = SoapUI.getActionRegistry().getAction(
        CloneMockServiceAction.SOAPUI_ACTION_ID );
    CloneMockServiceAction a = ( CloneMockServiceAction )action;

    String name = UISupport.prompt( "Specify name for copied MockService", "Copy MockService",
        "Copy of " + source.getName() );
    if( name == null )
      return false;

    if( source.getProject() == target )
    {
      a.cloneMockServiceWithinProject( source, name, target, source.getDescription() );
    }
    else
    {
      a.cloneToAnotherProject( source, target.getName(), name, source.getDescription() );
    }

    return true;
  }
View Full Code Here


  @Override
  boolean moveAfter( WsdlMockService source, WsdlProject target )
  {
    SoapUIAction<WsdlMockService> action = SoapUI.getActionRegistry().getAction(
        CloneMockServiceAction.SOAPUI_ACTION_ID );
    CloneMockServiceAction a = ( CloneMockServiceAction )action;

    String name = UISupport.prompt( "Specify name for moved MockService", "Move MockService", source.getName() );
    if( name == null )
      return false;

    if( a.cloneToAnotherProject( source, target.getName(), name, source.getDescription() ) == null )
      return false;

    source.getProject().removeMockService( source );
    return true;
  }
View Full Code Here

    @Override
    boolean copyAfter(WsdlMockService source, WsdlProject target) {
        SoapUIAction<WsdlMockService> action = SoapUI.getActionRegistry().getAction(
                CloneMockServiceAction.SOAPUI_ACTION_ID);
        CloneMockServiceAction a = (CloneMockServiceAction) action;

        String name = UISupport.prompt("Specify name for copied MockService", "Copy MockService",
                "Copy of " + source.getName());
        if (name == null) {
            return false;
        }

        if (source.getProject() == target) {
            a.cloneMockServiceWithinProject(source, name, target, source.getDescription());
        } else {
            a.cloneToAnotherProject(source, target.getName(), name, source.getDescription());
        }

        return true;
    }
View Full Code Here

    @Override
    boolean moveAfter(WsdlMockService source, WsdlProject target) {
        SoapUIAction<WsdlMockService> action = SoapUI.getActionRegistry().getAction(
                CloneMockServiceAction.SOAPUI_ACTION_ID);
        CloneMockServiceAction a = (CloneMockServiceAction) action;

        String name = UISupport.prompt("Specify name for moved MockService", "Move MockService", source.getName());
        if (name == null) {
            return false;
        }

        if (a.cloneToAnotherProject(source, target.getName(), name, source.getDescription()) == null) {
            return false;
        }

        source.getProject().removeMockService(source);
        return true;
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.actions.mockservice.CloneMockServiceAction

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.