Package com.eviware.soapui.support.xml

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader


    this.label = label;

    if( config.getConfiguration() == null )
      config.addNewConfiguration();

    load( new XmlObjectConfigurationReader( config.getConfiguration() ) );
  }
View Full Code Here


  public static Map<String, String> projectEntriesList( SensitiveInfoExposureAssertion sensitiveInfoExposureAssertion )
  {
    Project project = ModelSupport.getModelItemProject( sensitiveInfoExposureAssertion );
    AbstractWsdlModelItem<ModelItemConfig> modelItem = ( AbstractWsdlModelItem<ModelItemConfig> )project
        .getModelItem();
    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(
        ( ( ProjectConfig )modelItem.getConfig() ).getSensitiveInformation() );
    String[] strngArray = reader.readStrings( ProjectSensitiveInformationPanel.PROJECT_SPECIFIC_EXPOSURE_LIST );
    if( strngArray != null )
    {
      Map<String, String> map = new HashMap<String, String>();

      for( String str : strngArray )
View Full Code Here

    XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
    builder.add( "testFloat", ( float )0.123 );
    builder.add( "testInt", 123 );
    builder.add( "testString", "1234" );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( builder.finish() );
    assertEquals( ( float )0.123, reader.readFloat( "testFloat", 0 ) );
    assertEquals( 123, reader.readInt( "testInt", 0 ) );
    assertEquals( "1234", reader.readString( "testString", null ) );
  }
View Full Code Here

  public SimpleContainsAssertion( TestAssertionConfig assertionConfig, Assertable assertable )
  {
    super( assertionConfig, assertable, true, true, true, true );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    token = reader.readString( "token", null );
    ignoreCase = reader.readBoolean( "ignoreCase", false );
    useRegEx = reader.readBoolean( "useRegEx", false );
  }
View Full Code Here

  {
    super( STRATEGY_TYPE, loadTest );

    if( config != null )
    {
      XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
      testDelay = reader.readInt( "testDelay", DEFAULT_TEST_DELAY );
      randomFactor = reader.readFloat( "randomFactor", DEFAULT_RANDOM_FACTOR );
    }
  }
View Full Code Here

  {
    super( STRATEGY_TYPE, loadTest );

    if( config != null )
    {
      XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( config );
      startThreadCount = reader.readInt( "startThreadCount", DEFAULT_START_THREAD_COUNT );
      endThreadCount = reader.readInt( "endThreadCount", DEFAULT_END_THREAD_COUNT );
    }
  }
View Full Code Here

   */
  public WSAResponseAssertion( TestAssertionConfig assertionConfig, Assertable modelItem )
  {
    super( assertionConfig, modelItem, false, true, false, true );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    assertWsaAction = reader.readBoolean( "asertWsaAction", true );
    assertWsaTo = reader.readBoolean( "asertWsaTo", false );
    // assertWsaReplyTo = reader.readBoolean("assertWsaReplyTo", false);
    // assertWsaMessageId = reader.readBoolean("assertWsaMessageId", false);
    assertWsaRelatesTo = reader.readBoolean( "asertWsaRelatesTo", false );
    assertReplyToRefParams = reader.readBoolean( "assertReplyToRefParams", false );
    assertFaultToRefParams = reader.readBoolean( "assertFaultToRefParams", false );
    wsaAssertionConfiguration = new WsaAssertionConfiguration( assertWsaAction, assertWsaTo, false, false,
        assertWsaRelatesTo, assertReplyToRefParams, assertFaultToRefParams );
  }
View Full Code Here

   */
  public WSARequestAssertion( TestAssertionConfig assertionConfig, Assertable modelItem )
  {
    super( assertionConfig, modelItem, false, true, false, true );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    assertWsaAction = reader.readBoolean( "asertWsaAction", true );
    assertWsaTo = reader.readBoolean( "asertWsaTo", false );
    assertWsaReplyTo = reader.readBoolean( "assertWsaReplyTo", false );
    assertWsaMessageId = reader.readBoolean( "assertWsaMessageId", false );
    // assertWsaRelatesTo = reader.readBoolean("asertWsaRelatesTo", false);
    // assertReplyToRefParams = reader.readBoolean("assertReplyToRefParams",
    // false);
    // assertFaultToRefParams = reader.readBoolean("assertFaultToRefParams",
    // false);
View Full Code Here

  public XPathContainsAssertion( TestAssertionConfig assertionConfig, Assertable assertable )
  {
    super( assertionConfig, assertable, true, true, true, true );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    path = reader.readString( "path", null );
    expectedContent = reader.readString( "content", null );
    allowWildcards = reader.readBoolean( "allowWildcards", false );
    ignoreNamespaceDifferences = reader.readBoolean( "ignoreNamspaceDifferences", false );
    ignoreComments = reader.readBoolean( "ignoreComments", false );
  }
View Full Code Here

  public SimpleNotContainsAssertion( TestAssertionConfig assertionConfig, Assertable assertable )
  {
    super( assertionConfig, assertable, true, true, true, true );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    token = reader.readString( "token", null );
    ignoreCase = reader.readBoolean( "ignoreCase", false );
    useRegEx = reader.readBoolean( "useRegEx", false );
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.xml.XmlObjectConfigurationReader

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.