Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringList


        synchronized( runningTestCase )
        {
          for( TestRunListener listener : testRunListeners )
            runningTestCase.addTestRunListener( listener );

          StringList returnProperties = getReturnProperties();
          Map<String, TestProperty> props = getProperties();
          for( String key : props.keySet() )
          {
            if( runningTestCase.hasProperty( key ) && !returnProperties.contains( key ) )
            {
              String value = PropertyExpander.expandProperties( testRunContext, props.get( key ).getValue() );
              if( StringUtils.hasContent( value ) || !isIgnoreEmptyProperties() )
                runningTestCase.setPropertyValue( key, value );
            }
View Full Code Here


    for( Interface iface : project.getInterfaceList() )
    {
      endpoints.addAll( Arrays.asList( iface.getEndpoints() ) );
    }

    StringList keys = new StringList();

    synchronized( defaults )
    {
      for( String key : defaults.keySet() )
      {
        if( !endpoints.contains( key ) )
        {
          keys.add( key );
        }
      }

      for( String key : keys )
      {
View Full Code Here

  private int loadProperties( String source, boolean createMissing ) throws IOException
  {
    // override methods so propertynames are returned in readorder
    java.util.Properties props = new java.util.Properties()
    {
      public StringList names = new StringList();

      @Override
      public synchronized Object put( Object key, Object value )
      {
        names.add( key.toString() );
        return super.put( key, value );
      }

      @Override
      public Enumeration<?> propertyNames()
      {
        return Collections.enumeration( names );
      }
    };

    InputStream in = getPropertiesInputStream( source );
    props.load( in );
    in.close();

    int cnt = 0;
    Enumeration<?> names = props.propertyNames();
    while( names.hasMoreElements() )
    {
      String name = names.nextElement().toString();
      TestProperty property = getProperty( name );
      if( property != null )
      {
        property.setValue( props.get( name ).toString() );
        cnt++ ;
View Full Code Here

    // security / authentication
    table.addProperty( "Username", "username", true );
    table.addPropertyShadow( "Password", "password", true );
    table.addProperty( "Domain", "domain", true );

    StringList keystores = new StringList( ( ( WsdlProject )request.getTestStep().getTestCase().getTestSuite()
        .getProject() ).getWssContainer().getCryptoNames() );
    keystores.add( "" );
    table.addProperty( "SSL Keystore", "sslKeystore", keystores.toStringArray() );

    table.addProperty( "Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Remove Empty Content", "removeEmptyContent", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Entitize Properties", "entitizeProperties", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Multi-Value Delimiter", "multiValueDelimiter", true );
View Full Code Here

    table.addProperty( "Timeout", "timeout", true );

    table.addProperty( "Bind Address", "bindAddress", true );
    table.addProperty( "Follow Redirects", "followRedirects", JPropertiesTable.BOOLEAN_OPTIONS );

    StringList keystores = new StringList( request.getTestStep().getTestCase().getTestSuite().getProject()
        .getWssContainer().getCryptoNames() );
    keystores.add( "" );
    table.addProperty( "SSL Keystore", "sslKeystore", keystores.toStringArray() );

    table.addProperty( "Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Remove Empty Content", "removeEmptyContent", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Entitize Properties", "entitizeProperties", JPropertiesTable.BOOLEAN_OPTIONS );
    table.addProperty( "Multi-Value Delimiter", "multiValueDelimiter", true );
View Full Code Here

    List<QName> result = new ArrayList<QName>();
    if( string != null && string.trim().length() > 0 )
    {
      try
      {
        StringList names = StringList.fromXml( string );
        for( String name : names )
        {
          QName qname = string2qname( name );
          result.add( qname );
        }
View Full Code Here

    return result;
  }

  public static String qnames2String( Collection<? extends QName> qnames )
  {
    StringList names = new StringList();
    for( QName qname : qnames )
    {
      String string = qname2string( qname );
      names.add( string );
    }
    return names.toXml();
  }
View Full Code Here

    LinkedHashMap<QName, String[]> result = new LinkedHashMap<QName, String[]>();
    if( string != null && string.trim().length() > 0 )
    {
      try
      {
        StringList list = StringList.fromXml( string );
        for( String s : list )
        {
          String[] words = s.split( "=" );
          if( words.length == 2 )
          {
View Full Code Here

      {
        PrintWriter writer = writers.get( c );
        if( writer == null )
          continue;

        StringList values = snapshot[c];
        writer.append( dateString ).append( ',' );
        writer.append( threadCountString ).append( ',' );
        writer.append( elapsedString );

        for( String value : values )
View Full Code Here

    StringList[] result = new StringList[getRowCount()];

    for( int c = 0; c < clone.length; c++ )
    {
      StringList values = new StringList();

      for( int columnIndex = 2; columnIndex < getColumnCount(); columnIndex++ )
      {
        switch( columnIndex )
        {
        case 4 :
        case 7 :
          values.add( String.valueOf( ( float )data[c][columnIndex - 2] / 100 ) );
          break;
        default :
          values.add( String.valueOf( data[c][columnIndex - 2] ) );
        }
      }

      result[c] = values;
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.types.StringList

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.