Class AbstractCXFTest

    • Field Detail

      • bus

        protected org.apache.cxf.Bus bus
    • Constructor Detail

      • AbstractCXFTest

        protected AbstractCXFTest()
    • Method Detail

      • getBus

        public org.apache.cxf.Bus getBus()
      • shutdownBus

        public void shutdownBus()
      • createBus

        protected org.apache.cxf.Bus createBus()
                                        throws org.apache.cxf.BusException
        Throws:
        org.apache.cxf.BusException
      • assertValid

        public NodeList assertValid​(String xpath,
                                    Node node)
                             throws Exception
        Assert that the following XPath query selects one or more nodes.
        Parameters:
        xpath -
        Throws:
        Exception
      • assertValidBoolean

        public void assertValidBoolean​(String xpath,
                                       Node node)
                                throws Exception
        Assert that the following XPath query selects a boolean value.
        Parameters:
        xpath -
        Throws:
        Exception
      • assertInvalid

        public NodeList assertInvalid​(String xpath,
                                      Node node)
                               throws Exception
        Assert that the following XPath query selects no nodes.
        Parameters:
        xpath -
        Throws:
        Exception
      • assertXPathEquals

        public void assertXPathEquals​(String xpath,
                                      String value,
                                      Node node)
                               throws Exception
        Assert that the text of the xpath node retrieved is equal to the value specified.
        Parameters:
        xpath -
        value -
        node -
        Throws:
        Exception
      • assertXPathEquals

        public void assertXPathEquals​(String xpath,
                                      QName value,
                                      Node node)
                               throws Exception
        Assert that the text of the xpath node retrieved is equal to the value specified.
        Parameters:
        xpath -
        value -
        node -
        Throws:
        Exception
      • assertNoFault

        public void assertNoFault​(Node node)
                           throws Exception
        Assert that this node is not a SOAP fault part.
        Parameters:
        node -
        Throws:
        Exception
      • addNamespace

        public void addNamespace​(String ns,
                                 String uri)
        Add a namespace that will be used for XPath expressions.
        Parameters:
        ns - Namespace name.
        uri - The namespace uri.
      • getResourceAsStream

        protected InputStream getResourceAsStream​(String resource)
      • getResourceAsReader

        protected Reader getResourceAsReader​(String resource)
      • getTestFile

        public File getTestFile​(String relativePath)
      • getBasedir

        public static String getBasedir()
      • getWSDLDocument

        protected Document getWSDLDocument​(org.apache.cxf.endpoint.Server server)
                                    throws javax.wsdl.WSDLException
        Throws:
        javax.wsdl.WSDLException