Examples of WsdlSubmitContext


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[2]/companyName");
        assertion.setExpectedContent("<companyName>Bonnier Otto Karl Adam</companyName>");

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

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

                + "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[2]/companyName/text()");
        assertion.setExpectedContent("Bonnier Otto Karl Adam");

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

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

    public void testFragmentMatch() throws Exception {
        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

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

        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

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

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

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

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

    @Test
    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

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

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

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

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

                + "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

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

                + "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 Adams");

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

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

        // );

        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
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.