[jbpm-commits] JBoss JBPM SVN: r6870 - jbpm4/trunk/modules/jpdl/src/test/java/org/jbpm/jpdl/parsing.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Dec 16 01:46:35 EST 2010


Author: alex.guizar at 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);
   }
 }



More information about the jbpm-commits mailing list