ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [39/50] [abbrv] incubator-ignite git commit: # IGNITE-368 IgniteExceptionRegistrySelfTest: added stack trace print.
Date Tue, 17 Mar 2015 12:41:16 GMT
# IGNITE-368 IgniteExceptionRegistrySelfTest: added stack trace print.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/734f820f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/734f820f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/734f820f

Branch: refs/heads/ignite-432
Commit: 734f820fffa5863ccd9bf45fb7986dd0705871d5
Parents: 6ba9e75
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Mar 17 11:16:29 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Mar 17 11:16:29 2015 +0700

----------------------------------------------------------------------
 .../util/IgniteExceptionRegistrySelfTest.java         | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/734f820f/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
index f9805e1..7764c41 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/util/IgniteExceptionRegistrySelfTest.java
@@ -20,6 +20,7 @@ package org.apache.ignite.internal.util;
 import org.apache.ignite.testframework.*;
 import org.apache.ignite.testframework.junits.common.*;
 
+import java.io.*;
 import java.util.*;
 import java.util.concurrent.*;
 
@@ -44,8 +45,17 @@ public class IgniteExceptionRegistrySelfTest extends GridCommonAbstractTest
{
 
         if (expCnt != errors.size()) {
             for (IgniteExceptionRegistry.ExceptionInfo e : errors)
-                if (!e.message().startsWith("Test "))
-                    info(e.message() + " " + e.error());
+                if (!e.message().startsWith("Test ")) {
+                    info("----------------------------");
+
+                    info("!!! Found unexpected suppressed exception: msg=" + e.message()
+ ", err=" + e.error());
+
+                    StringWriter sw = new StringWriter(1024);
+                    e.error().printStackTrace(new PrintWriter(sw));
+                    info(sw.toString());
+
+                    info("----------------------------");
+                }
 
             assert false;
         }


Mime
View raw message