Package com.eviware.soapui.support.types

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


    this.output = output;
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );

    if( output != null )
      values.put( OUTPUT, output );

    return values;
  }
View Full Code Here


    else if( mainForm != null )
    {
      mainForm.setOptions( ENDPOINT, new String[] { null } );
    }

    StringToStringMap values = super.initValues( modelItem, param );

    if( mainForm != null )
    {
      if( param instanceof WsdlTestCase )
      {
        mainForm.getFormField( TESTSUITE ).setValue( ( ( WsdlTestCase )param ).getTestSuite().getName() );
        mainForm.getFormField( TESTCASE ).setValue( ( ( WsdlTestCase )param ).getName() );

        values.put( TESTSUITE, ( ( WsdlTestCase )param ).getTestSuite().getName() );
        values.put( TESTCASE, ( ( WsdlTestCase )param ).getName() );
      }
      else if( param instanceof WsdlTestSuite )
      {
        mainForm.getFormField( TESTSUITE ).setValue( ( ( WsdlTestSuite )param ).getName() );
        values.put( TESTSUITE, ( ( WsdlTestSuite )param ).getName() );
      }

      mainForm.getComponent( SAVEPROJECT ).setEnabled( !modelItem.isRemote() );
    }
View Full Code Here

  protected ArgumentBuilder buildArgs( WsdlProject modelItem ) throws IOException
  {
    XFormDialog dialog = getDialog();
    if( dialog == null )
    {
      ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
      builder.startScript( SECURITYTESTRUNNER, BAT, SH );
      return builder;
    }

    StringToStringMap values = dialog.getValues();

    ArgumentBuilder builder = new ArgumentBuilder( values );

    builder.startScript( SECURITYTESTRUNNER, BAT, SH );

    builder.addString( ENDPOINT, "-e", "" );
    builder.addString( HOSTPORT, "-h", "" );

    if( !values.get( TESTSUITE ).equals( ALL_VALUE ) )
      builder.addString( TESTSUITE, "-s", "" );

    if( !values.get( TESTCASE ).equals( ALL_VALUE ) )
      builder.addString( TESTCASE, "-c", "" );

    if( !values.get( SECURITYTEST ).equals( ALL_VALUE ) )
      builder.addString( SECURITYTEST, "-n", "" );

    builder.addString( USERNAME, "-u", "" );
    builder.addStringShadow( PASSWORD, "-p", "" );
    builder.addString( DOMAIN, "-d", "" );
View Full Code Here

    else if( mainForm != null )
    {
      mainForm.setOptions( ENDPOINT, new String[] { null } );
    }

    StringToStringMap values = super.initValues( modelItem, param );
    updateCombos();

    if( mainForm != null && param instanceof WsdlLoadTest )
    {
      mainForm.getFormField( TESTSUITE ).setValue( ( ( WsdlLoadTest )param ).getTestCase().getTestSuite().getName() );
      mainForm.getFormField( TESTCASE ).setValue( ( ( WsdlLoadTest )param ).getTestCase().getName() );
      mainForm.getFormField( LOADTEST ).setValue( ( ( WsdlLoadTest )param ).getName() );

      values.put( TESTSUITE, mainForm.getComponentValue( TESTSUITE ) );
      values.put( TESTCASE, mainForm.getComponentValue( TESTCASE ) );
      values.put( LOADTEST, mainForm.getComponentValue( LOADTEST ) );

      mainForm.getComponent( SAVEPROJECT ).setEnabled( !modelItem.isRemote() );
    }

    return values;
View Full Code Here

  private ArgumentBuilder buildArgs( WsdlProject modelItem ) throws IOException
  {
    XFormDialog dialog = getDialog();
    if( dialog == null )
    {
      ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
      builder.startScript( "loadtestrunner", ".bat", ".sh" );
      return builder;
    }

    StringToStringMap values = dialog.getValues();

    ArgumentBuilder builder = new ArgumentBuilder( values );

    builder.startScript( "loadtestrunner", ".bat", ".sh" );

    builder.addString( ENDPOINT, "-e", "" );
    builder.addString( HOSTPORT, "-h", "" );

    if( !values.get( TESTSUITE ).equals( ALL_VALUE ) )
      builder.addString( TESTSUITE, "-s", "" );

    if( !values.get( TESTCASE ).equals( ALL_VALUE ) )
      builder.addString( TESTCASE, "-c", "" );

    if( !values.get( LOADTEST ).equals( ALL_VALUE ) )
      builder.addString( LOADTEST, "-l", "" );

    builder.addString( LIMIT, "-m", "" );
    builder.addString( THREADCOUNT, "-n", "" );
    builder.addString( USERNAME, "-u", "" );
View Full Code Here

  }

  @Override
  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );

    boolean hasEjbLink = values.get( EJB_LINK, "" ).length() > 0;
    boolean hasServletLink = values.get( SERVLET_LINK, "" ).length() > 0;

    if( !hasEjbLink && !hasServletLink )
    {
      ejbLinkField.setEnabled( true );
      servletLinkField.setEnabled( true );
    }
    else
    {
      ejbLinkField.setEnabled( hasEjbLink && !hasServletLink );
      servletLinkField.setEnabled( hasServletLink && !hasEjbLink );

      if( hasEjbLink && hasServletLink )
        values.put( SERVLET_LINK, "" );
    }

    appendField.setEnabled( hasEjbLink || hasServletLink );

    return values;
View Full Code Here

    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    try
    {
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      if( !nsMappings.isEmpty() )
      {
        GlobalType global = config.addNewGlobal();

        for( String namespace : nsMappings.keySet() )
        {
          PkgNSType entry = global.addNewPackageNamespace();
          entry.setNamespace( namespace );
          entry.setPackage( nsMappings.get( namespace ) );
        }
      }
    }
    catch( Exception e )
    {
View Full Code Here

        return packages.get( rowIndex );
    }

    public StringToStringMap getMappings()
    {
      StringToStringMap result = new StringToStringMap();
      for( int c = 0; c < namespaces.size(); c++ )
      {
        String pkg = packages.get( c );
        if( returnEmpty || ( pkg != null && pkg.trim().length() > 0 ) )
        {
          result.put( namespaces.get( c ), pkg == null ? "" : pkg.trim() );
        }
      }

      return result;
    }
View Full Code Here

    super( "GSoap Artifacts", "Generates GSoap artifacts using wsdl2h and soap2cpp" );
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );

    values.putIfMissing( WSDL2H, Boolean.toString( true ) );
    values.putIfMissing( SOAPCPP2, Boolean.toString( true ) );
    return values;
  }
View Full Code Here

    else if( mainForm != null )
    {
      mainForm.setOptions( ENDPOINT, new String[] { null } );
    }

    StringToStringMap values = super.initValues( modelItem, param );

    if( mainForm != null )
    {
      if( param instanceof WsdlTestCase )
      {
        mainForm.getFormField( TESTSUITE ).setValue( ( ( WsdlTestCase )param ).getTestSuite().getName() );
        mainForm.getFormField( TESTCASE ).setValue( ( ( WsdlTestCase )param ).getName() );

        values.put( TESTSUITE, ( ( WsdlTestCase )param ).getTestSuite().getName() );
        values.put( TESTCASE, ( ( WsdlTestCase )param ).getName() );
      }
      else if( param instanceof WsdlTestSuite )
      {
        mainForm.getFormField( TESTSUITE ).setValue( ( ( WsdlTestSuite )param ).getName() );
        values.put( TESTSUITE, ( ( WsdlTestSuite )param ).getName() );
      }

      mainForm.getComponent( SAVEPROJECT ).setEnabled( !modelItem.isRemote() );
    }
View Full Code Here

TOP

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

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.