Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.TestProperty


    {
      Component result = super.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus );

      if( value != null )
      {
        TestProperty item = ( TestProperty )value;
        setText( item.getName() );
      }

      setToolTipText( getText() );

      return result;
View Full Code Here


      public void itemStateChanged( ItemEvent e )
      {
        if( e.getStateChange() == ItemEvent.SELECTED && !selecting )
        {
          TestProperty targetProperty = ( TestProperty )targetPropertyCombo.getSelectedItem();
          PropertyTransfer valueTransfer = getCurrentTransfer();

          if( valueTransfer != null )
          {
            valueTransfer.setTargetPropertyName( targetProperty.getName() );
          }
        }
      }
    } );
View Full Code Here

      public void itemStateChanged( ItemEvent e )
      {
        if( e.getStateChange() == ItemEvent.SELECTED && !selecting )
        {
          TestProperty sourceProperty = ( TestProperty )sourcePropertyCombo.getSelectedItem();
          PropertyTransfer valueTransfer = getCurrentTransfer();

          if( valueTransfer != null )
          {
            valueTransfer.setSourcePropertyName( sourceProperty.getName() );
          }
        }
      }
    } );
View Full Code Here

      this.combo = combo;
    }

    public void propertyAdded( String name )
    {
      TestProperty property = combo == targetPropertyCombo ? getCurrentTransfer().getTargetStep().getProperty( name )
          : getCurrentTransfer().getSourceStep().getProperty( name );

      combo.addItem( property );
      combo.setEnabled( true );
    }
View Full Code Here

    public void propertyMoved( String name, int oldIndex, int newIndex )
    {
      combo.removeItemAt( oldIndex );

      TestProperty property = combo == targetPropertyCombo ? getCurrentTransfer().getTargetStep().getProperty( name )
          : getCurrentTransfer().getSourceStep().getProperty( name );

      combo.insertItemAt( property, newIndex );
    }
View Full Code Here

        if( propertyCombo == targetPropertyCombo )
        {
          List<String> names = new ArrayList<String>();
          for( String name : propertyNames )
          {
            TestProperty property = selectedItem.getProperty( name );
            if( property != null && !property.isReadOnly() )
              names.add( property.getName() );
          }

          propertyNames = names.toArray( new String[names.size()] );
        }
View Full Code Here

  }

  @Override
  public boolean renameProperty( String name, String newName )
  {
    TestProperty tp = properties.get( name );
    if( tp != null )
    {
      properties.put( newName, tp );
      properties.remove( name );
      return true;
View Full Code Here

            int ix = name.indexOf(PROPERTY_SEPARATOR);
            if (ix > 0) {
                String teststepname = name.substring(0, ix);
                TestStep refTestStep = testCase.getTestStepByName(teststepname);
                if (refTestStep != null) {
                    TestProperty property = refTestStep.getProperty(name.substring(ix + 1));
                    return property == null ? null : property.getValue();
                }
            }

            if (testCase.getSearchProperties()) {
                ix = testStep == null ? testCase.getTestStepCount() - 1 : testCase.getIndexOfTestStep(testStep);
                if (ix >= testCase.getTestStepCount()) {
                    ix = testCase.getTestStepCount() - 1;
                }

                while (ix >= 0) {
                    TestProperty property = testCase.getTestStepAt(ix).getProperty(name);
                    if (property != null) {
                        return property.getValue();
                    }

                    ix--;
                }
            }
View Full Code Here

        int ix = name.indexOf(PROPERTY_SEPARATOR);
        if (ix > 0) {
            String teststepname = name.substring(0, ix);
            TestStep refTestStep = testCase.getTestStepByName(teststepname);
            if (refTestStep != null) {
                TestProperty property = refTestStep.getProperty(name.substring(ix + 1));
                if (property != null && !property.isReadOnly()) {
                    property.setValue(value.toString());
                    return;
                }
            }
        }
View Full Code Here

        }
        // return (T[]) array;
    }

    private static int partition(MutableTestPropertyHolder array, int lo, int hi, int pivotIndex) {
        TestProperty pivotValue = array.getPropertyAt(pivotIndex);

        swap(array, pivotIndex, hi); // send to the back

        int index = lo;

        for (int i = lo; i < hi; i++) {
            if (ascending) {
                if ((array.getPropertyAt(i).getName().toUpperCase().compareTo(pivotValue.getName().toUpperCase()) >= 0)) {
                    swap(array, i, index);
                    index++;
                }
            } else {
                if ((array.getPropertyAt(i).getName().toUpperCase().compareTo(pivotValue.getName().toUpperCase()) <= 0)) {
                    swap(array, i, index);
                    index++;
                }
            }
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestProperty

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.