Examples of addProperty()


Examples of com.eviware.soapui.impl.rest.RestMethod.addProperty()

              param = resolveParameter( param );
              if( param != null )
              {
                String nm = param.getName();
                RestParamProperty prop = restMethod.hasProperty( nm ) ? restMethod.getProperty( nm )
                    : restMethod.addProperty( nm );

                initParam( param, prop );
              }
            }
          }

Examples of com.eviware.soapui.impl.rest.RestResource.addProperty()

    @Test
    public void shouldGenerateRestMockServiceForNestedResources() {
        RestResource one = restService.addNewResource("one", "/one{version}");

        RestParamProperty path = one.addProperty("version");
        path.setValue("v1");

        RestResourceConfig nestedResourceConfig = one.getConfig().addNewResource();
        nestedResourceConfig.setPath("/path/again");

Examples of com.eviware.soapui.impl.rest.support.RestParamsPropertyHolder.addProperty()

                paramsPropertyHolder = getRequest().getResource().getParams();
                break;
        }

        if (paramsPropertyHolder != null) {
            paramsPropertyHolder.addProperty(name);
            RestParamProperty addedParameter = paramsPropertyHolder.getProperty(name);
            addedParameter.addPropertyChangeListener(restParamPropertyChangeListener);
            addedParameter.setValue(value);
            addedParameter.setDefaultValue(value);
            addedParameter.setStyle(style);

Examples of com.eviware.soapui.impl.rest.support.XmlBeansRestParamsTestPropertyHolder.addProperty()

      Node[] nodes = XmlUtils.selectDomNodes( requestXml, "//text()" );

      for( Node node : nodes )
      {
        String xpath = XmlUtils.createXPath( node.getParentNode() );
        RestParamProperty property = holder.addProperty( node.getParentNode().getNodeName() );
        property.setValue( node.getNodeValue() );
        property.setPath( xpath );
      }
    }
    catch( XmlException e )

Examples of com.eviware.soapui.impl.wsdl.MutableTestPropertyHolder.addProperty()

                  name = UISupport.prompt( "Specify unique name of property", "Add Property", modelItem
                      .getProperty().getName() );
                }

                if( name != null )
                  mtph.addProperty( name ).setValue( propertyExpansion.toString() );
              }
            }
            else
            {
              getPropertiesTable().setValueAt( propertyExpansion.toString(), row, column );

Examples of com.eviware.soapui.impl.wsdl.WsdlProject.addProperty()

        badTransfer.setDisabled( true );

      }
      else
      {
        TestProperty newProperty = project.addProperty( name );
        name = UISupport.prompt( "What is default value for property " + name, "Add Property Value", "" );
        if( StringUtils.hasContent( name ) )
          newProperty.setValue( name );
        else
          newProperty.setValue( newProperty.getName() );

Examples of com.eviware.soapui.impl.wsdl.WsdlTestSuite.addProperty()

  public void testScopedPropertyExpansion() throws Exception
  {
    WsdlProject project = new WsdlProject();
    project.addProperty( "projectId" ).setValue( "123" );
    WsdlTestSuite testSuite = project.addNewTestSuite( "TestSuite" );
    testSuite.addProperty( "testSuiteId" ).setValue( "234" );
    WsdlTestCase testCase = testSuite.addNewTestCase( "TestCase" );
    testCase.addProperty( "testCaseId" ).setValue( "345" );

    WsdlTestStep testStep = testCase.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript" );

Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.addProperty()

    WsdlProject project = new WsdlProject();
    project.addProperty( "projectId" ).setValue( "123" );
    WsdlTestSuite testSuite = project.addNewTestSuite( "TestSuite" );
    testSuite.addProperty( "testSuiteId" ).setValue( "234" );
    WsdlTestCase testCase = testSuite.addNewTestCase( "TestCase" );
    testCase.addProperty( "testCaseId" ).setValue( "345" );

    WsdlTestStep testStep = testCase.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript" );

    MockTestRunner mockTestRunner = new MockTestRunner( testCase, Logger.getLogger( "testing" ) );
    MockTestRunContext context = new MockTestRunContext( mockTestRunner, testStep );

Examples of com.exedosoft.plat.gene.jquery.PropertyManager.addProperty()

              // TODO Auto-generated catch block
              e.printStackTrace();
            }
            System.out.println("ColName:" + colNames[len]
                + "  DBSize:" + dbsizes[len]);
            pm.addProperty(selected, colNames[len], iType, iDBSize);
           

          }else{
            System.out.println("已经存在ColName::" + DOBOProperty.getDOBOPropertyByName(selected.getName(),
                colNames[len]));

Examples of com.google.gdata.data.appsforyourdomain.generic.GenericEntry.addProperty()

  /*
   * convert an AccountInfo instance into a GenericEntry instance
   */
  public GenericEntry toGenericEntry() {
    GenericEntry entry = new GenericEntry();
    entry.addProperty("requestId", requestId);
    if (completedDate != null) {
      entry.addProperty("completedDate", DATE_FORMAT.format(completedDate));
    }
    if (requestDate != null) {
      entry.addProperty("beginDate", DATE_FORMAT.format(requestDate));
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.