Package com.eviware.soapui.model

Examples of com.eviware.soapui.model.TestModelItem


      Component result = super.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus );
      try
      {
        if( value instanceof TestModelItem )
        {
          TestModelItem item = ( TestModelItem )value;
          setIcon( item.getIcon() );
          setText( item.getName() );
        }
        else if( value == PropertyExpansionUtils.getGlobalProperties() )
        {
          setText( "Global" );
        }
View Full Code Here


      try
      {
        if( value instanceof TestModelItem )
        {
          TestModelItem item = ( TestModelItem )value;
          setIcon( item.getIcon() );
          setText( item.getName() );
        }
        else if( value == PropertyExpansionUtils.getGlobalProperties() )
        {
          setText( "Global" );
        }
View Full Code Here

  {
    List<XPathReference> result = new ArrayList<XPathReference>();

    if( StringUtils.hasContent( getPath() ) )
    {
      TestModelItem testStep = getAssertable().getTestStep();
      TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty( "Response" )
          : testStep.getProperty( "Request" );
      result.add( new XPathReferenceImpl( "XPath for " + getName() + " XPathContainsAssertion in "
          + testStep.getName(), property, this, "path" ) );
    }

    return result.toArray( new XPathReference[result.size()] );
  }
View Full Code Here

  {
    List<XPathReference> result = new ArrayList<XPathReference>();

    if( StringUtils.hasContent( getPath() ) )
    {
      TestModelItem testStep = getAssertable().getTestStep();
      TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty( "Response" )
          : testStep.getProperty( "Request" );
      result.add( new XPathReferenceImpl( "XQuery for " + getName() + " XQueryContainsAssertion in "
          + testStep.getName(), property, this, "path" ) );
    }

    return result.toArray( new XPathReference[result.size()] );
  }
View Full Code Here

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

      if( value instanceof TestModelItem )
      {
        TestModelItem item = ( TestModelItem )value;
        setIcon( item.getIcon() );
        setText( item.getName() );
      }
      else if( value == PropertyExpansionUtils.getGlobalProperties() )
      {
        setText( "Global" );
      }
View Full Code Here

    public XPathReference[] getXPathReferences() {
        List<XPathReference> result = new ArrayList<XPathReference>();

        if (StringUtils.hasContent(getPath())) {
            TestModelItem testStep = getAssertable().getTestStep();
            TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty("Response")
                    : testStep.getProperty("Request");
            result.add(new XPathReferenceImpl("XQuery for " + getName() + " XQueryContainsAssertion in "
                    + testStep.getName(), property, this, "path"));
        }

        return result.toArray(new XPathReference[result.size()]);
    }
View Full Code Here

    public XPathReference[] getXPathReferences() {
        List<XPathReference> result = new ArrayList<XPathReference>();

        if (StringUtils.hasContent(getPath())) {
            TestModelItem testStep = getAssertable().getTestStep();
            TestProperty property = testStep instanceof WsdlTestRequestStep ? testStep.getProperty("Response")
                    : testStep.getProperty("Request");
            result.add(new XPathReferenceImpl("XPath for " + getName() + " XPathContainsAssertion in "
                    + testStep.getName(), property, this, "path"));
        }

        return result.toArray(new XPathReference[result.size()]);
    }
View Full Code Here

        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
                                                      boolean cellHasFocus) {
            Component result = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);

            if (value instanceof TestModelItem) {
                TestModelItem item = (TestModelItem) value;
                setIcon(item.getIcon());
                setText(item.getName());
            } else if (value == PropertyExpansionUtils.getGlobalProperties()) {
                setText("Global");
            }

            setToolTipText(getText());
View Full Code Here

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

            try {
                if (value instanceof TestModelItem) {
                    TestModelItem item = (TestModelItem) value;
                    setIcon(item.getIcon());
                    setText(item.getName());
                } else if (value == PropertyExpansionUtils.getGlobalProperties()) {
                    setText("Global");
                }

            } catch (Exception e) {
View Full Code Here

        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
                                                      boolean cellHasFocus) {
            Component result = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
            try {
                if (value instanceof TestModelItem) {
                    TestModelItem item = (TestModelItem) value;
                    setIcon(item.getIcon());
                    setText(item.getName());
                } else if (value == PropertyExpansionUtils.getGlobalProperties()) {
                    setText("Global");
                }
            } catch (Exception e) {
                setText("Removed element");
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.TestModelItem

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.