Author: alex.guizar(a)jboss.com
Date: 2010-12-16 01:46:34 -0500 (Thu, 16 Dec 2010)
New Revision: 6870
Modified:
jbpm4/trunk/modules/jpdl/src/test/java/org/jbpm/jpdl/parsing/ArgParsingTest.java
Log:
relax test that depended on a very specific error message
Modified:
jbpm4/trunk/modules/jpdl/src/test/java/org/jbpm/jpdl/parsing/ArgParsingTest.java
===================================================================
---
jbpm4/trunk/modules/jpdl/src/test/java/org/jbpm/jpdl/parsing/ArgParsingTest.java 2010-12-16
06:45:19 UTC (rev 6869)
+++
jbpm4/trunk/modules/jpdl/src/test/java/org/jbpm/jpdl/parsing/ArgParsingTest.java 2010-12-16
06:46:34 UTC (rev 6870)
@@ -53,11 +53,7 @@
.execute()
.getProblems();
assertEquals(1, problems.size());
- assertEquals("xml validation error: cvc-complex-type.2.4.d: "
- + "Invalid content was found starting with element 'string'. "
- + "No child element is expected at this point. [line=8 column=44 ]: "
- + "org.xml.sax.SAXParseException: cvc-complex-type.2.4.d: "
- + "Invalid content was found starting with element 'string'. "
- + "No child element is expected at this point.",
problems.get(0).toString());
+ assertTrue("expected parse exception",
+ problems.get(0).getCause() instanceof org.xml.sax.SAXParseException);
}
}
Show replies by date