|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.Assert
org.apache.cxf.test.AbstractCXFTest
public class AbstractCXFTest
A basic test case meant for helping users unit test their services.
TestUtilities| Nested Class Summary | |
|---|---|
static class |
AbstractCXFTest.TestMessageObserver
|
| Field Summary | |
|---|---|
protected Bus |
bus
|
protected TestUtilities |
testUtilities
|
| Constructor Summary | |
|---|---|
protected |
AbstractCXFTest()
|
| Method Summary | |
|---|---|
void |
addNamespace(String ns,
String uri)
Add a namespace that will be used for XPath expressions. |
NodeList |
assertInvalid(String xpath,
Node node)
Assert that the following XPath query selects no nodes. |
void |
assertNoFault(Node node)
Assert that this node is not a SOAP fault part. |
NodeList |
assertValid(String xpath,
Node node)
Assert that the following XPath query selects one or more nodes. |
void |
assertValidBoolean(String xpath,
Node node)
Assert that the following XPath query selects a boolean value. |
void |
assertXPathEquals(String xpath,
String value,
Node node)
Assert that the text of the xpath node retrieved is equal to the value specified. |
protected Bus |
createBus()
|
static String |
getBasedir()
|
Bus |
getBus()
|
NamespaceContext |
getNamespaceContext()
|
Map<String,String> |
getNamespaces()
|
protected Reader |
getResourceAsReader(String resource)
|
protected InputStream |
getResourceAsStream(String resource)
|
File |
getTestFile(String relativePath)
|
protected Document |
getWSDLDocument(Server server)
|
protected Node |
invoke(String address,
String transport,
byte[] message)
|
protected Node |
invoke(String address,
String transport,
String message)
|
protected byte[] |
invokeBytes(String address,
String transport,
String message)
|
void |
setUpBus()
|
void |
shutdownBus()
|
| Methods inherited from class org.junit.Assert |
|---|
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TestUtilities testUtilities
protected Bus bus
| Constructor Detail |
|---|
protected AbstractCXFTest()
| Method Detail |
|---|
public void setUpBus()
throws Exception
Exceptionpublic Bus getBus()
public void shutdownBus()
protected Bus createBus()
throws BusException
BusException
protected byte[] invokeBytes(String address,
String transport,
String message)
throws Exception
Exception
protected Node invoke(String address,
String transport,
String message)
throws Exception
Exception
protected Node invoke(String address,
String transport,
byte[] message)
throws Exception
Exception
public NodeList assertValid(String xpath,
Node node)
throws Exception
xpath -
Exception
public void assertValidBoolean(String xpath,
Node node)
throws Exception
xpath -
Exception
public NodeList assertInvalid(String xpath,
Node node)
throws Exception
xpath -
Exception
public void assertXPathEquals(String xpath,
String value,
Node node)
throws Exception
xpath - value - node -
Exception
public void assertNoFault(Node node)
throws Exception
node -
Exception
public void addNamespace(String ns,
String uri)
ns - Namespace name.uri - The namespace uri.public NamespaceContext getNamespaceContext()
public Map<String,String> getNamespaces()
protected InputStream getResourceAsStream(String resource)
protected Reader getResourceAsReader(String resource)
public File getTestFile(String relativePath)
public static String getBasedir()
protected Document getWSDLDocument(Server server)
throws javax.wsdl.WSDLException
javax.wsdl.WSDLException
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||