Package com.eviware.soapui.impl.wsdl

Examples of com.eviware.soapui.impl.wsdl.WsdlSubmitContext


  {
    assertion.setPath( "declare namespace urn='urn:schema:v1:companyservice:applications:bis.bonnier.se';"
        + "declare namespace urn1='urn:v1:companysearch:common:bis.bonnier.se';"
        + "//urn:searchResponse/urn1:searchResult/company[4]" );
    assertion.setExpectedContent( readResource( "/testFragment.xml" ) );
    assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here


    assertion.setAllowWildcards( true );
    assertion.setExpectedContent( readResource( "/testFragmentWithCommentAndWildcard.xml" ) );

    try
    {
      assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" );
      assertFalse( "Assertion should have failed", true );
    }
    catch( AssertionException e )
    {
    }

    assertion.setIgnoreComments( true );

    assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here

  public void testAnyFragmentMatch() throws Exception
  {
    assertion.setExpectedContent( readResource( "/testFragment.xml" ) );
    assertion.setPath( "//company" );

    assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here

  }

  @Override
  protected Submit doSubmit() throws SubmitException
  {
    return getRequest().submit( new WsdlSubmitContext( getModelItem() ), true );
  }
View Full Code Here

  public void testLastElementTextMatch() throws Exception
  {
    assertion.setPath( "//company[last()]/companyName/text()" );
    assertion.setExpectedContent( "Bonnier Zoo F�rlag AB" );

    assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here

  public void testElementCountMatch() throws Exception
  {
    assertion.setPath( "count(//company)" );
    assertion.setExpectedContent( "20" );

    assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here

        + "declare namespace urn='urn:schema:v1:companyservice:applications:bis.bonnier.se';"
        + "declare namespace urn1='urn:v1:companysearch:common:bis.bonnier.se';"
        + "/env:Envelope/env:Body/urn:searchResponse/urn1:searchResult/company/companyName/text()" );
    assertion.setExpectedContent( "Bonnier Otto Karl Adam" );

    assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here

        + "/env:Envelope/env:Body/urn:searchResponse/urn1:searchResult/company/companyName/text()" );
    assertion.setExpectedContent( "Bonnier Otto Karl Adams" );

    try
    {
      assertNotNull( assertion.assertContent( testResponse, new WsdlSubmitContext( null ), "" ) );
      assertFalse( "assertion should have failed", true );
    }
    catch( Exception e )
    {
    }
View Full Code Here

    // );

    assertion
        .setPath( "//*[@id=substring(//book/bookID[text()='1012']/following-sibling::author/@href,2)]/name/text()" );
    // assertion.setPath( "//*[@id='ID_1']/name/text()" );
    assertNotNull( assertion.assertContent( response, new WsdlSubmitContext( null ), "" ) );
  }
View Full Code Here

    }
  }

  protected Submit doSubmit() throws SubmitException
  {
    return getRequest().submit( new WsdlSubmitContext( getModelItem() ), true );
  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.WsdlSubmitContext

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.