public final class TestCamelUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertXMLEqualWithInnerXML(String control,
String test,
String innerXmlXpathLocation)
Same as
XMLAssert.assertXMLEqual(String, String),
but with the specified node verified as XML using the same similarity technique,
not as text (which would have to match completely). |
static void |
replaceToAsynch(org.apache.camel.builder.AdviceWithRouteBuilder builder)
Replaces calling TO
AsynchConstants.URI_ASYNCH_IN_MSG with processor that creates OK response. |
static org.apache.camel.Processor |
throwException(Exception exc)
Returns processor that throws specified exception.
|
public static void replaceToAsynch(org.apache.camel.builder.AdviceWithRouteBuilder builder)
AsynchConstants.URI_ASYNCH_IN_MSG with processor that creates OK response.
Useful when you want to test input (IN) route of asynchronous process.
builder - the advice builderpublic static void assertXMLEqualWithInnerXML(String control, String test, String innerXmlXpathLocation) throws SAXException, IOException
XMLAssert.assertXMLEqual(String, String),
but with the specified node verified as XML using the same similarity technique,
not as text (which would have to match completely).control - the expected XMLtest - the actual XML being verifiedinnerXmlXpathLocation - the XPath location of the element, that should be verified as XML, not as textSAXException - can be thrown when creating Diff (e.g., if the provided XML is invalid)IOException - can be thrown when creating Diffpublic static org.apache.camel.Processor throwException(Exception exc)
exc - the exceptionCopyright © 2018 Pivotal Software, Inc.. All rights reserved.