Package org.apache.cxf.test

Examples of org.apache.cxf.test.TestUtilities$TestMessageObserver


   
    @Test
    public void testWSDL() throws Exception {
        URL url = new URL("http://localhost:9002/jaxwsAndAegis?wsdl");
        Document dom = XMLUtils.parse(url.openStream());
        TestUtilities util = new TestUtilities(this.getClass());
        util.addDefaultNamespaces();
        util.assertInvalid("//wsdl:definitions/wsdl:types/xsd:schema/"
                           + "xsd:complexType[@name='getRolesAsArrayResponse']/"
                           + "xsd:sequence/xsd:element[@maxOccurs]",
                           dom);
        util.assertValid("//wsdl:definitions/wsdl:types/xsd:schema/"
                           + "xsd:complexType[@name='getRolesAsArrayResponse']/"
                           + "xsd:sequence/xsd:element[@nillable='true']",
                           dom);
       
        url = new URL("http://localhost:9002/serviceWithCustomNS?wsdl");
        dom = XMLUtils.parse(url.openStream());
        util.assertValid("//wsdl:definitions[@targetNamespace='http://foo.bar.com']",
                         dom);
    }
View Full Code Here


public class CharacterSchemaTest extends AbstractDependencyInjectionSpringContextTests {
   
    private TestUtilities testUtilities;
   
    public CharacterSchemaTest() {
        testUtilities = new TestUtilities(getClass());
    }
View Full Code Here

public class CrossSchemaImportsTests extends AbstractJUnit4SpringContextTests {

    private TestUtilities testUtilities;

    public CrossSchemaImportsTests() {
        testUtilities = new TestUtilities(getClass());
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.test.TestUtilities$TestMessageObserver

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.