Package com.eviware.soapui.support.types

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


    setString( id, Long.toString( value ) );
  }

  public void setConfig( SettingsConfig soapuiSettings )
  {
    StringToStringMap changed = new StringToStringMap();

    for( SettingConfig config : soapuiSettings.getSettingList() )
    {
      if( !config.getStringValue().equals( getString( config.getId(), null ) ) )
        changed.put( config.getId(), getString( config.getId(), null ) );
    }

    values.clear();

    config.set( soapuiSettings );
    List<SettingConfig> settingList = config.getSettingList();
    for( SettingConfig setting : settingList )
    {
      values.put( setting.getId(), setting );
    }

    for( String key : changed.keySet() )
    {
      notifySettingChanged( key, getString( key, null ), changed.get( key ) );
    }
    notifySettingsReloaded();
  }
View Full Code Here


        !model.isReadOnly() );
    headersTableModel.addTableModelListener( new TableModelListener()
    {
      public void tableChanged( TableModelEvent arg0 )
      {
        StringToStringMap map = model.getJMSHeadersAndProperties();
        setTitle( "JMS (" + ( map == null ? "0" : map.size() ) + ")" );
      }
    } );
    headersTable = new JTable( headersTableModel );

    panel = new JPanel( new BorderLayout() );
View Full Code Here

      try
      {
        mockResponse.evaluateScript( mockResponse.getMockResult() == null ? null : mockResponse.getMockResult()
            .getMockRequest() );

        StringToStringMap values = null;
        if( mockResponse.getMockResult() != null )
          values = mockResponse.getMockResult().getMockRequest().getContext().toStringToStringMap();

        if( values == null || values.isEmpty() )
        {
          UISupport.showInfoMessage( "No values were returned" );
        }
        else
        {
          String msg = "<html><body>Returned values:<br>";

          for( String name : values.keySet() )
          {
            msg += XmlUtils.entitize( name ) + " : " + XmlUtils.entitize( values.get( name ) ) + "<br>";
          }

          msg += "</body></html>";

          UISupport.showExtendedInfo( "Result", "Result of MockResponse Script", msg, new Dimension( 500, 400 ) );
View Full Code Here

    }

    if( !isWADL11 )
    {
      XmlOptions options = new XmlOptions();
      StringToStringMap subst = new StringToStringMap();
      subst.put( Constants.WADL11_NS, Constants.WADL10_NS );
      options.setLoadSubstituteNamespaces( subst );
      try
      {
        // return XmlObject.Factory.parse( applicationDocument.xmlText(),
        // options );
View Full Code Here

  }

  public StringToStringMap getNamespaces()
  {
    if( declaredNamespaces == null )
      declaredNamespaces = new StringToStringMap();

    return declaredNamespaces;
  }
View Full Code Here

  }

  public void declareNamespace( String prefix, String uri )
  {
    if( declaredNamespaces == null )
      declaredNamespaces = new StringToStringMap();

    declaredNamespaces.put( prefix, uri );
  }
View Full Code Here

public class ArgumentBuilderTestCase extends TestCase
{
  public void testUnix() throws Exception
  {
    ArgumentBuilder builder = new ArgumentBuilder( new StringToStringMap() );
    builder.startScript( "tcpmon", null, ".sh" );

    assertEquals( "sh", builder.getArgs().get( 0 ) );
    assertEquals( "-c", builder.getArgs().get( 1 ) );
View Full Code Here

      if( getModelItem().getMessageExchange() instanceof AMFTestStepResult )
      {
        AMFTestStepResult messageExchange = ( AMFTestStepResult )getModelItem().getMessageExchange();
        return ( ( AMFRequestTestStep )messageExchange.getTestStep() ).getAmfHeaders();
      }
      return new StringToStringMap();
    }
View Full Code Here

  public XPathData createParent()
  {
    if( pathComponents.isEmpty() )
      return null;

    StringToStringMap nsMap2 = new StringToStringMap( nsMap );
    ArrayList<String> pathComponents2 = new ArrayList<String>( pathComponents );
    pathComponents2.remove( 0 );
    return new XPathData( nsMap2, pathComponents2, absolute );
  }
View Full Code Here

        {
          return ( ( AMFRequestTestStep )messageExchange.getTestStep() ).getAMFRequest().getResponse()
              .getResponseAMFHeaders();
        }
        else
          return new StringToStringMap();

      }
      return new StringToStringMap();
    }
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.