|
||||||||||
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(String ns,
String uri)
Add a namespace that will be used for XPath expressions. |
List |
assertInvalid(String xpath,
Object node)
Assert that the following XPath query selects no nodes. |
void |
assertNoFault(org.jdom.Document node)
|
List |
assertValid(String xpath,
Object node)
Assert that the following XPath query selects one or more nodes. |
void |
assertXPathEquals(String xpath,
String value,
org.jdom.Document node)
Asser that the text of the xpath node retrieved is equal to the value specified. |
protected Reader |
getResourceAsReader(String resource)
|
protected InputStream |
getResourceAsStream(String resource)
|
org.codehaus.xfire.service.ServiceFactory |
getServiceFactory()
|
protected org.codehaus.xfire.service.ServiceRegistry |
getServiceRegistry()
|
protected org.codehaus.xfire.wsdl.WSDLWriter |
getWSDL(String service)
Get the WSDL for a service. |
protected org.jdom.Document |
getWSDLDocument(String service)
|
protected org.codehaus.xfire.XFire |
getXFire()
|
protected org.jdom.Document |
invokeService(String service,
String document)
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(String text)
|
protected org.jdom.Document |
readDocument(String text,
javax.xml.stream.XMLInputFactory ifactory)
|
void |
setServiceFactory(org.codehaus.xfire.service.ServiceFactory factory)
|
protected void |
setUp()
|
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString |
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.jdom.Document node) throws Exception
Exception
protected void printNode(org.jdom.Element node) throws Exception
Exception
protected org.jdom.Document invokeService(String service, String document) throws Exception
service
- The name of the service.document
- The request as an xml document in the classpath.
Exception
protected org.jdom.Document readDocument(String text) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected org.jdom.Document readDocument(String text, javax.xml.stream.XMLInputFactory ifactory) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected org.jdom.Document getWSDLDocument(String service) throws Exception
Exception
protected void setUp() throws Exception
setUp
in class org.codehaus.plexus.PlexusTestCase
Exception
TestCase.setUp()
public List assertValid(String xpath, Object node) throws Exception
xpath
-
Exception
public List assertInvalid(String xpath, Object node) throws Exception
xpath
-
Exception
public void assertXPathEquals(String xpath, String value, org.jdom.Document node) throws Exception
xpath
- value
- node
-
Exception
public void assertNoFault(org.jdom.Document node) throws Exception
Exception
public void addNamespace(String ns, String uri)
ns
- Namespace name.uri
- The namespace uri.protected org.codehaus.xfire.wsdl.WSDLWriter getWSDL(String service) throws Exception
service
- The name of the service.
Exception
public org.codehaus.xfire.service.ServiceFactory getServiceFactory() throws Exception
Exception
public void setServiceFactory(org.codehaus.xfire.service.ServiceFactory factory)
protected InputStream getResourceAsStream(String resource)
getResourceAsStream
in class org.codehaus.plexus.PlexusTestCase
protected Reader getResourceAsReader(String resource)
protected org.codehaus.xfire.XFire getXFire() throws Exception
Exception
protected org.codehaus.xfire.service.ServiceRegistry getServiceRegistry() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |