Package com.eviware.soapui.support.xml

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader.readString()


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

  public String internalAssertResponse( MessageExchange messageExchange, SubmitContext context )
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

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

  public String internalAssertResponse( MessageExchange messageExchange, SubmitContext context )
View Full Code Here

   */
  public ResponseSLAAssertion( TestAssertionConfig assertionConfig, Assertable modelItem )
  {
    super( assertionConfig, modelItem, false, true, false, false );
    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    SLA = reader.readString( "SLA", "200" );
  }

  protected String internalAssertRequest( MessageExchange messageExchange, SubmitContext context )
      throws AssertionException
  {
View Full Code Here

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

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    definition = reader.readString( "definition", null );
  }

  @Override
  public void prepare( TestCaseRunner testRunner, TestCaseRunContext testRunContext ) throws Exception
  {
View Full Code Here

  public GroovyScriptAssertion( TestAssertionConfig assertionConfig, Assertable modelItem )
  {
    super( assertionConfig, modelItem, true, true, true, false );

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader( getConfiguration() );
    scriptText = reader.readString( "scriptText", "" );

    scriptEngine = SoapUIScriptEngineRegistry.create( this );
    scriptEngine.setScript( scriptText );
  }
View Full Code Here

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

  public String getExpectedContent()
View Full Code Here

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

  public String getExpectedContent()
  {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.