public class AbstractCXFTest
extends org.junit.Assert
TestUtilities| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCXFTest.TestMessageObserver |
| Modifier and Type | Field and Description |
|---|---|
protected Bus |
bus |
protected TestUtilities |
testUtilities |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCXFTest() |
| Modifier and Type | Method and Description |
|---|---|
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,
QName value,
Node node)
Assert that the text of the xpath node retrieved is equal to the value
specified.
|
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() |
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, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failprotected TestUtilities testUtilities
protected Bus bus
public Bus getBus()
public void shutdownBus()
protected Bus createBus() throws BusException
BusExceptionprotected byte[] invokeBytes(String address, String transport, String message) throws Exception
Exceptionprotected Node invoke(String address, String transport, String message) throws Exception
Exceptionprotected Node invoke(String address, String transport, byte[] message) throws Exception
Exceptionpublic NodeList assertValid(String xpath, Node node) throws Exception
xpath - Exceptionpublic void assertValidBoolean(String xpath, Node node) throws Exception
xpath - Exceptionpublic NodeList assertInvalid(String xpath, Node node) throws Exception
xpath - Exceptionpublic void assertXPathEquals(String xpath, String value, Node node) throws Exception
xpath - value - node - Exceptionpublic void assertXPathEquals(String xpath, QName value, Node node) throws Exception
xpath - value - node - Exceptionpublic void assertNoFault(Node node) throws Exception
node - Exceptionpublic void addNamespace(String ns, String uri)
ns - Namespace name.uri - The namespace uri.public NamespaceContext getNamespaceContext()
protected InputStream getResourceAsStream(String resource)
public static String getBasedir()
Apache CXF