db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r209012 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ThreadSafe.java
Date Mon, 04 Jul 2005 04:54:08 GMT
Author: clr
Date: Sun Jul  3 21:54:07 2005
New Revision: 209012

URL: http://svn.apache.org/viewcvs?rev=209012&view=rev
Log:
improve error message for org.apache.jdo.tck.api.persistencemanager.ThreadSafe.java

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ThreadSafe.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ThreadSafe.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ThreadSafe.java?rev=209012&r1=209011&r2=209012&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ThreadSafe.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ThreadSafe.java
Sun Jul  3 21:54:07 2005
@@ -109,13 +109,15 @@
         // check unhandled exceptions
         Set uncaught = group.getAllUncaughtExceptions();
         if ((uncaught != null) && !uncaught.isEmpty()) {
+            StringBuffer report = new StringBuffer("Uncaught exceptions:\n");
             for (Iterator i = uncaught.iterator(); i.hasNext();) {
                 Map.Entry next = (Map.Entry)i.next();
                 Thread thread = (Thread)next.getKey();
                 Throwable problem = (Throwable)next.getValue();
-                fail(ASSERTION_FAILED,
-                     "Uncaught exception " + problem + " in thread " + thread);
+                report.append(
+                     "Uncaught exception " + problem + " in thread " + thread + "\n");
             }
+            fail(ASSERTION_FAILED, report.toString());
         }
 
         if (succeeds != 1) {



Mime
View raw message