Skip to content
Browse files

SWITCHYARD-1314 Message Validator improvement

  • Loading branch information...
1 parent 117da58 commit 4cd8247a03bbb6c49a716d3d7045cf7928cd4c06 @igarashitm igarashitm committed with kcbabo Feb 23, 2013
View
1 jboss-as7/modules/src/main/resources/switchyard/core/validate/module.xml
@@ -31,6 +31,7 @@
<dependencies>
<module name="javax.api"/>
<module name="org.apache.log4j"/>
+ <module name="org.apache.xml-resolver"/>
<module name="org.switchyard.api"/>
<module name="org.switchyard.common"/>
<module name="org.switchyard.common.cdi"/>
View
2 jboss-as7/tests/src/test/java/org/switchyard/test/quickstarts/ValidateXmlQuickstartTest.java
@@ -47,7 +47,7 @@ public void testOrders() throws Exception {
httpMixIn.initialize();
try {
String response = httpMixIn.postString("http://localhost:8080/quickstart-validate-xml/OrderService", SOAP_REQUEST);System.out.println(response);
- XMLAssert.assertXpathEvaluatesTo("Error during validation with '/xsd/orders.xsd' as 'XML_SCHEMA'.", "//faultstring", response);
+ Assert.assertTrue(response.contains("Invalid content was found starting with element 'invalid-element'. No child element is expected at this point."));
} finally {
httpMixIn.uninitialize();
}

0 comments on commit 4cd8247

Please sign in to comment.
Something went wrong with that request. Please try again.