[jboss-cvs] JBossAS SVN: r85354 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/persistenceunits/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 5 15:22:47 EST 2009


Author: ALRubinger
Date: 2009-03-05 15:22:47 -0500 (Thu, 05 Mar 2009)
New Revision: 85354

Modified:
   projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java
Log:
[EJBTHREE-1753] Correct the test to be more lenient in looking at the error message

Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java	2009-03-05 20:11:59 UTC (rev 85353)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/persistenceunits/unit/MultipleEarTestCase.java	2009-03-05 20:22:47 UTC (rev 85354)
@@ -103,7 +103,10 @@
          Map<String, Throwable> deploymentsInError = incomplete.getDeploymentsInError();
          assertEquals("only persistenceunitscope-test2.ear should have failed", 1, deploymentsInError.size());
          Map.Entry<String, Throwable> entry = deploymentsInError.entrySet().iterator().next();
-         assertTrue(entry.getKey().endsWith("persistenceunitscope-test2.ear"));
+         String expectedEntryKey = "persistenceunitscope-test2.ear";
+         String entryKey = entry.getKey();
+         log.info("Error message is: " + entryKey + ", looking for this to contain " + expectedEntryKey);
+         assertTrue(entryKey.contains(expectedEntryKey));
 
          // Check that it's Entity1 PU that cannot be resolved 
          String message = entry.getValue().getMessage();




More information about the jboss-cvs-commits mailing list