|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.codehaus.xfire.test.AbstractXFireTest
public abstract class AbstractXFireTest
Contains helpful methods to test SOAP services.
Nested Class Summary | |
---|---|
protected static class |
AbstractXFireTest.CopySerializer
|
Field Summary | |
---|---|
static java.lang.String |
RESPONSE
|
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(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,
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 Document |
getWSDLDocument(java.lang.String service)
|
protected XFire |
getXFire()
|
protected XFireProxyFactory |
getXFireProxyFactory()
|
protected InMessage |
invokeService(OutMessage msg,
java.lang.String transportID)
|
protected Document |
invokeService(java.lang.String service,
java.lang.String document)
Invoke a service with the specified document. |
protected void |
printNode(Document node)
|
protected Document |
readDocument(java.lang.String text)
|
protected Document |
readDocument(java.lang.String text,
XMLInputFactory ifactory)
|
void |
setServiceFactory(ServiceFactory factory)
|
protected void |
setUp()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESPONSE
Constructor Detail |
---|
public AbstractXFireTest()
Method Detail |
---|
protected void printNode(Document node) throws java.lang.Exception
java.lang.Exception
protected 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 InMessage invokeService(OutMessage msg, java.lang.String transportID) throws java.lang.Exception
java.lang.Exception
protected Document readDocument(java.lang.String text) throws XMLStreamException
XMLStreamException
protected Document readDocument(java.lang.String text, XMLInputFactory ifactory) throws XMLStreamException
XMLStreamException
protected Document getWSDLDocument(java.lang.String service) throws java.lang.Exception
java.lang.Exception
protected void setUp() throws java.lang.Exception
java.lang.Exception
junit.framework.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, Document node) throws java.lang.Exception
xpath
- value
- node
-
java.lang.Exception
public void assertNoFault(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 |