|
||||||||||
| 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.plexus.PlexusTestCase
org.codehaus.xfire.plexus.PlexusXFireTest
public class PlexusXFireTest
Contains helpful methods to test SOAP services.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.plexus.PlexusTestCase |
|---|
basedir, container |
| 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. |
void |
assertInvalid(java.lang.String xpath,
org.dom4j.Node node)
Assert that the following XPath query selects no nodes. |
void |
assertNoFault(org.dom4j.Node node)
|
void |
assertValid(java.lang.String xpath,
org.dom4j.Node node)
Assert that the following XPath query selects one or more nodes. |
void |
assertXPathEquals(java.lang.String xpath,
java.lang.String value,
org.dom4j.Node node)
Asser that the text of the xpath node retrieved is equal to the value specified. |
protected org.dom4j.XPath |
createXPath(java.lang.String xpathString)
Create the specified XPath expression with the namespaces added via addNamespace(). |
protected org.codehaus.xfire.service.ServiceRegistry |
getServiceRegistry()
|
protected org.codehaus.xfire.wsdl.WSDL |
getWSDL(java.lang.String service)
Get the WSDL for a service. |
protected org.dom4j.Document |
getWSDLDocument(java.lang.String service)
|
protected org.codehaus.xfire.XFire |
getXFire()
|
protected org.dom4j.Document |
invokeService(java.lang.String service,
java.lang.String document)
Invoke a service with the specified document. |
protected void |
printNode(org.dom4j.Node node)
|
protected void |
setUp()
|
| Methods inherited from class org.codehaus.plexus.PlexusTestCase |
|---|
customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getContainerInstance, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PlexusXFireTest()
| Method Detail |
|---|
protected void printNode(org.dom4j.Node node)
throws java.lang.Exception
java.lang.Exception
protected org.dom4j.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.dom4j.Document getWSDLDocument(java.lang.String service)
throws java.lang.Exception
java.lang.Exception
protected void setUp()
throws java.lang.Exception
setUp in class org.codehaus.plexus.PlexusTestCasejava.lang.ExceptionTestCase.setUp()
public void assertValid(java.lang.String xpath,
org.dom4j.Node node)
throws java.lang.Exception
xpath -
java.lang.Exception
public void assertInvalid(java.lang.String xpath,
org.dom4j.Node node)
throws java.lang.Exception
xpath -
java.lang.Exception
public void assertXPathEquals(java.lang.String xpath,
java.lang.String value,
org.dom4j.Node node)
throws java.lang.Exception
xpath - value - node -
java.lang.Exception
public void assertNoFault(org.dom4j.Node node)
throws java.lang.Exception
java.lang.Exceptionprotected org.dom4j.XPath createXPath(java.lang.String xpathString)
public void addNamespace(java.lang.String ns,
java.lang.String uri)
ns - Namespace name.uri - The namespace uri.
protected org.codehaus.xfire.wsdl.WSDL getWSDL(java.lang.String service)
throws java.lang.Exception
string - The name of the service.
java.lang.Exception
protected org.codehaus.xfire.XFire getXFire()
throws java.lang.Exception
java.lang.Exception
protected org.codehaus.xfire.service.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 | |||||||||