|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPlexusTestCase
org.codehaus.xfire.plexus.PlexusXFireTest
public class PlexusXFireTest
Contains helpful methods to test SOAP services.
Constructor Summary | |
---|---|
PlexusXFireTest()
|
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 java.io.Reader |
getResourceAsReader(java.lang.String resource)
|
protected java.io.InputStream |
getResourceAsStream(java.lang.String resource)
|
ServiceFactory |
getServiceFactory()
|
protected ServiceRegistry |
getServiceRegistry()
|
protected WSDLWriter |
getWSDL(java.lang.String service)
Get the WSDL for a service. |
protected Document |
getWSDLDocument(java.lang.String service)
|
protected XFire |
getXFire()
|
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 |
Constructor Detail |
---|
public PlexusXFireTest()
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 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()
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
public ServiceFactory getServiceFactory() throws java.lang.Exception
java.lang.Exception
public void setServiceFactory(ServiceFactory factory)
protected java.io.InputStream getResourceAsStream(java.lang.String resource)
protected java.io.Reader getResourceAsReader(java.lang.String resource)
protected XFire getXFire() throws java.lang.Exception
java.lang.Exception
protected ServiceRegistry getServiceRegistry() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |