Package com.eviware.soapui.support.types

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


    config.setTestAssertionsFile( "../../common/profiles/SSBP10_BP11_TAD.xml" );

    WsdlReference wsdlRef = config.addNewWsdlReference();

    StringToStringMap values = new StringToStringMap();
    values.put( WSDL, iface.getDefinition() );
    values.put( CACHED_WSDL, Boolean.toString( iface.isCached() ) );

    wsdlRef.setWsdlURI( getWsdlUrl( values, iface ) );
    WsdlElementReference wsdlElement = wsdlRef.addNewWsdlElement();
    wsdlElement.setType( WsdlElementType.BINDING );
    wsdlElement.setStringValue( iface.getBindingName().getLocalPart() );
View Full Code Here


    super( "Axis 2 Artifacts", "Generates Axis 2 artifacts using wsdl2java" );
  }

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

    if( !values.hasValue( PORT_NAME ) || !values.hasValue( SERVICE_NAME ) )
      initServiceAndPort( values, ( WsdlInterface )modelItem );

    return values;
  }
View Full Code Here

    }

    try
    {
      StringBuilder nsMapArg = new StringBuilder();
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      for( String namespace : nsMappings.keySet() )
      {
        if( nsMapArg.length() > 0 )
          nsMapArg.append( ',' );

        nsMapArg.append( namespace ).append( '=' ).append( nsMappings.get( namespace ) );
      }

      builder.addArgs( "-ns2p", nsMapArg.toString() );
    }
    catch( Exception e )
View Full Code Here

  {
    File logFile = buildLog( modelItem );
    File file = buildConfig( reportFile, logFile, modelItem );
    Settings settings = modelItem.getSettings();

    ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
    builder.startScript( "Analyzer", ".bat", ".sh" );

    builder.addArgs( "-config", file.getAbsolutePath() );

    // add this to command-line due to bug in wsi-tools (?)
View Full Code Here

    return !iface.getProject().hasNature( Project.JBOSSWS_NATURE_ID );
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );
    if( output != null )
      values.put( SRCTARGET, output );

    return values;
  }
View Full Code Here

      mainForm.setOptions( TESTCASE, testCases.toArray() );

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

    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() );
      }

    }

    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( SECURITYTESTRUNNER, BAT, SH );
      return builder;
    }

    StringToStringMap values = dialog.getValues();

    ArgumentBuilder builder = new ArgumentBuilder( values );

    builder.startScript( SECURITYTESTRUNNER, BAT, SH );

    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( SECURITY_TEST_NAME ).equals( ALL_VALUE ) )
      builder.addString( SECURITY_TEST_NAME, "-n", "" );

    builder.addArgs( new String[] { modelItem.getPath() } );

    addToolArgs( values, builder );
View Full Code Here

        UISupport.showErrorMessage( e1 );
      }
    }
    else
    {
      StringToStringMap values = initValues( ( T )target, param );

      dialog.setValues( values );
      dialog.setVisible( true );
    }
  }
View Full Code Here

  protected StringToStringMap initValues( T modelItem, Object param )
  {
    String settingValues = modelItem == null ? SoapUI.getSettings().getString( valuesSettingID, null ) : modelItem
        .getSettings().getString( valuesSettingID, null );

    StringToStringMap result = settingValues == null ? new StringToStringMap() : StringToStringMap
        .fromXml( settingValues );

    if( modelItem instanceof WsdlInterface )
    {
      initWSDL( result, ( WsdlInterface )modelItem );
View Full Code Here

    super( ".NET 2.0 Artifacts", "Generates .NET 2.0 artifacts using wsdl.exe" );
  }

  protected StringToStringMap initValues( Interface modelItem, Object param )
  {
    StringToStringMap values = super.initValues( modelItem, param );
    values.putIfMissing( LANGUAGE, "CS" );
    return values;
  }
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.