Examples of TestUtilities


Examples of org.apache.cxf.test.TestUtilities

   
    @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

Examples of org.apache.cxf.test.TestUtilities

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

Examples of org.apache.cxf.test.TestUtilities

    private org.apache.cxf.systest.aegis.mtom.fortest.MtomTestImpl impl;
    private org.apache.cxf.systest.aegis.mtom.fortest.MtomTest client;
    private TestUtilities testUtilities;
   
    public MtomTest() {
        testUtilities = new TestUtilities(getClass());
    }
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities

public class TestServiceTest extends AbstractJUnit4SpringContextTests {

    private TestUtilities testUtilities;

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

Examples of org.apache.cxf.test.TestUtilities

public class CrossSchemaImportsTests extends AbstractJUnit4SpringContextTests {

    private TestUtilities testUtilities;

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

Examples of org.apache.cxf.test.TestUtilities

public class SchemaAddinsTest extends Assert {
    private TestUtilities testUtilities;

    @Before
    public void before() {
        testUtilities = new TestUtilities(getClass());
        testUtilities.addDefaultNamespaces();
    }
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities

        return new String[] {"/org/apache/cxf/aegis/type/aegisOptionsTestBeans.xml"};
    }
   
    @Test
    public void testMinOccurs() throws Exception {
        TestUtilities testUtilities = new TestUtilities(TypeCreationOptionsSpringTest.class);
        testUtilities.setBus(getBean(Bus.class, "cxf"));
        testUtilities.addDefaultNamespaces();
        testUtilities.addNamespace("ts", "http://cxf.org.apache/service");
        //{urn:org.apache.cxf.aegis}arrayService
        Server s = testUtilities.getServerForService(new QName("urn:org.apache.cxf.aegis",
                                                               "arrayService"));
        Document wsdl = testUtilities.getWSDLDocument(s);
        assertXPathEquals("//xsd:complexType[@name='ArrayOfInt']/"
                          + "xsd:sequence/xsd:element[@name='int']/@minOccurs",
                          "3", wsdl);

    }
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities

    private TestUtilities testUtilities;
    private XMLOutputFactory xmlOutputFactory;
   
    @Before
    public void before() {
        testUtilities = new TestUtilities(getClass());
        testUtilities.addNamespace("test", "urn:test");
        xmlOutputFactory = XMLOutputFactory.newInstance();
    }
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities

        List<String> method();
    }
   
    @Before
    public void before() {
        testUtilities = new TestUtilities(getClass());
        testUtilities.addNamespace("feline", "urn:meow");
        xmlOutputFactory = XMLOutputFactory.newInstance();
        xmlInputFactory = XMLInputFactory.newInstance();
    }
View Full Code Here

Examples of org.apache.cxf.test.TestUtilities

        List<String> method();
    }
   
    @Before
    public void before() {
        testUtilities = new TestUtilities(getClass());
    }
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.