|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.xfire.test.AbstractXFireTest
Contains helpful methods to test SOAP services.
Constructor Summary | |
AbstractXFireTest()
|
Method Summary | |
void |
addNamespace(java.lang.String ns,
java.lang.String uri)
Add a namespace that will be used for XPath expressions. |
java.util.List |
assertInvalid(java.lang.String xpath,
java.lang.Object node)
Assert that the following XPath query selects no nodes. |
void |
assertNoFault(org.jdom.Document node)
|
java.util.List |
assertValid(java.lang.String xpath,
java.lang.Object node)
Assert that the following XPath query selects one or more nodes. |
void |
assertXPathEquals(java.lang.String xpath,
java.lang.String value,
org.jdom.Document node)
Asser that the text of the xpath node retrieved is equal to the value specified. |
protected void |
createSession()
|
static java.lang.String |
getBasedir()
|
protected java.io.Reader |
getResourceAsReader(java.lang.String resource)
|
protected java.io.InputStream |
getResourceAsStream(java.lang.String resource)
|
ServiceFactory |
getServiceFactory()
|
protected ServiceRegistry |
getServiceRegistry()
|
protected Session |
getSession()
|
java.io.File |
getTestFile(java.lang.String relativePath)
|
protected TransportManager |
getTransportManager()
|
protected WSDLWriter |
getWSDL(java.lang.String service)
Get the WSDL for a service. |
protected org.jdom.Document |
getWSDLDocument(java.lang.String service)
|
protected XFire |
getXFire()
|
protected XFireProxyFactory |
getXFireProxyFactory()
|
protected org.jdom.Document |
invokeService(java.lang.String service,
java.lang.String document)
Invoke a service with the specified document. |
protected org.jdom.Document |
invokeService(java.lang.String service,
javax.xml.stream.XMLStreamReader streamReader)
Invoke a service with the specified document. |
protected void |
printNode(org.jdom.Document node)
|
protected void |
printNode(org.jdom.Element node)
|
protected org.jdom.Document |
readDocument(java.lang.String text)
|
protected org.jdom.Document |
readDocument(java.lang.String text,
javax.xml.stream.XMLInputFactory ifactory)
|
void |
setServiceFactory(ServiceFactory factory)
|
protected void |
setUp()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AbstractXFireTest()
Method Detail |
protected void printNode(org.jdom.Document node) throws java.lang.Exception
java.lang.Exception
protected void printNode(org.jdom.Element node) throws java.lang.Exception
java.lang.Exception
protected org.jdom.Document invokeService(java.lang.String service, java.lang.String document) throws java.lang.Exception
service
- The name of the service.document
- The request as an xml document in the classpath.
java.lang.Exception
protected org.jdom.Document invokeService(java.lang.String service, javax.xml.stream.XMLStreamReader streamReader) throws java.lang.Exception
service
- The name of the service.streamReader
- Stream representing incoming message
java.lang.Exception
protected org.jdom.Document readDocument(java.lang.String text) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected org.jdom.Document readDocument(java.lang.String text, javax.xml.stream.XMLInputFactory ifactory) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected org.jdom.Document getWSDLDocument(java.lang.String service) throws java.lang.Exception
java.lang.Exception
protected void setUp() throws java.lang.Exception
java.lang.Exception
TestCase.setUp()
protected void createSession()
public java.util.List assertValid(java.lang.String xpath, java.lang.Object node) throws java.lang.Exception
xpath
-
java.lang.Exception
public java.util.List assertInvalid(java.lang.String xpath, java.lang.Object node) throws java.lang.Exception
xpath
-
java.lang.Exception
public void assertXPathEquals(java.lang.String xpath, java.lang.String value, org.jdom.Document node) throws java.lang.Exception
xpath
- value
- node
-
java.lang.Exception
public void assertNoFault(org.jdom.Document node) throws java.lang.Exception
java.lang.Exception
public void addNamespace(java.lang.String ns, java.lang.String uri)
ns
- Namespace name.uri
- The namespace uri.protected WSDLWriter getWSDL(java.lang.String service) throws java.lang.Exception
service
- The name of the service.
java.lang.Exception
protected Session getSession()
protected XFire getXFire()
protected TransportManager getTransportManager()
protected ServiceRegistry getServiceRegistry()
public ServiceFactory getServiceFactory()
public void setServiceFactory(ServiceFactory factory)
protected XFireProxyFactory getXFireProxyFactory()
protected java.io.InputStream getResourceAsStream(java.lang.String resource)
protected java.io.Reader getResourceAsReader(java.lang.String resource)
public java.io.File getTestFile(java.lang.String relativePath)
public static java.lang.String getBasedir()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |