Examples of PathToResolve


Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    }

    @SuppressWarnings( "unchecked" )
    public Object getValueAt( int arg0, int arg1 )
    {
      PathToResolve ptr = context.getPathsToResolve().get( arg0 );
      switch( arg1 )
      {
      case 0 :
        return createItemName( ptr );
      case 1 :
        return ptr.getDescription();
      case 2 :
        return ptr.getPath();

      }

      return null;
    }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    }

    @SuppressWarnings( "unchecked" )
    public void setResolver( int pathIndex, Object resolveOrDefaultAction )
    {
      PathToResolve path = context.getPathsToResolve().get( pathIndex );
      if( resolveOrDefaultAction instanceof Resolver )
      {
        path.setResolver( resolveOrDefaultAction );
      }

    }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    @SuppressWarnings( "unchecked" )
    public Component getTableCellEditorComponent( final JTable table, Object value, boolean isSelected, int row,
        int column )
    {
      jbc = ( ( ResolveContextTableModel )table.getModel() ).getResolversAndActions( row );
      final PathToResolve path = resolveContextTableModel.getContext().getPathsToResolve().get( row );

      jbc.addActionListener( new ActionListener()
      {

        public void actionPerformed( ActionEvent e )
        {
          Object key = jbc.getSelectedItem();
          if( key instanceof Resolver )
          {
            path.setResolver( key );
          }
          if( path.resolve() )
          {
            path.setSolved( true );
            jbc.addItem( "Resolved" );
            jbc.setSelectedIndex( jbc.getItemCount() - 1 );

            // for (int cnt = 0; cnt <
            // resolveContextTableModel.getContext().getPathsToResolve().size();
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

        int arg5 )
    {
      Component comp = super.getTableCellRendererComponent( arg0, arg1, arg2, arg3, arg4, arg5 );

      List<? extends PathToResolve> paths = resolveContextTableModel.getContext().getPathsToResolve();
      PathToResolve ptr = arg4 >= paths.size() ? null : paths.get( arg4 );
      // boolean resolved = ptr.getResolver() != null &&
      // ptr.getResolver().isResolved();

      if( ptr != null && ptr.isResolved() )
      {
        comp.setForeground( greenColor );
        setText( ptr.getPath() );
      }
      else
      {
        comp.setForeground( redColor );
      }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    }
    else
    {
      if( context.hasThisModelItem( parent, "Resolve source property", getConfig().getSourceStep() ) )
      {
        PathToResolve path = context.getPath( parent, "Resolve source property", getConfig().getSourceStep() );
        path.setSolved( true );
      }
    }

    if( getTargetProperty() == null )
    {
      if( context.hasThisModelItem( parent, "Resolve target property", getConfig().getTargetStep() ) )
        return;
      context.addPathToResolve( parent, "Resolve target property", getConfig().getTargetStep() ).addResolvers(
          new DisablePropertyTransferResolver( this ), new CreateMissingPropertyResolver( this, parent ),
          new ChooseAnotherPropertyTargetResolver( this, parent ) );
    }
    else
    {
      if( context.hasThisModelItem( parent, "Resolve target property", getConfig().getTargetStep() ) )
      {
        PathToResolve path = context.getPath( parent, "Resolve target property", getConfig().getTargetStep() );
        path.setSolved( true );
      }
    }

  }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    {
      getRestMethod().resolve( context );
      if( context.hasThisModelItem( this, "Missing REST Method in Project", getRequestStepConfig().getService()
          + "/" + getRequestStepConfig().getMethodName() ) )
      {
        @SuppressWarnings( "rawtypes" )
        PathToResolve path = context.getPath( this, "Missing REST Method in Project", getRequestStepConfig()
            .getService() + "/" + getRequestStepConfig().getMethodName() );
        path.setSolved( true );
      }
    }
  }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    {
      mockOperation.resolve( context );
      if( context.hasThisModelItem( this, "Missing Operation in Project", mockResponseStepConfig.getInterface()
          + "/" + mockResponseStepConfig.getOperation() ) )
      {
        @SuppressWarnings( "rawtypes" )
        PathToResolve path = context.getPath( this, "Missing Operation in Project",
            mockResponseStepConfig.getInterface() + "/" + mockResponseStepConfig.getOperation() );
        path.setSolved( true );
      }
    }
  }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

    {
      testRequest.resolve( context );
      if( context.hasThisModelItem( this, "Missing SOAP Operation in Project", requestStepConfig.getInterface()
          + "/" + requestStepConfig.getOperation() ) )
      {
        PathToResolve path = context.getPath( this, "Missing SOAP Operation in Project",
            requestStepConfig.getInterface() + "/" + requestStepConfig.getOperation() );
        path.setSolved( true );
      }
    }
  }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

            );
        } else {
            mockOperation.resolve(context);
            if (context.hasThisModelItem(this, "Missing Operation in Project", mockResponseStepConfig.getInterface()
                    + "/" + mockResponseStepConfig.getOperation())) {
                @SuppressWarnings("rawtypes")
                //FIXME need to understand why this needs casting, we need to find the root cause
                        PathToResolve path = (PathToResolve) context.getPath(this, "Missing Operation in Project",
                        mockResponseStepConfig.getInterface() + "/" + mockResponseStepConfig.getOperation());
                path.setSolved(true);
            }
        }
    }
View Full Code Here

Examples of com.eviware.soapui.support.resolver.ResolveContext.PathToResolve

            );
        } else {
            testRequest.resolve(context);
            if (context.hasThisModelItem(this, "Missing SOAP Operation in Project", requestStepConfig.getInterface()
                    + "/" + requestStepConfig.getOperation())) {
                PathToResolve path = context.getPath(this, "Missing SOAP Operation in Project",
                        requestStepConfig.getInterface() + "/" + requestStepConfig.getOperation());
                path.setSolved(true);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.