ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [20/50] incubator-ignite git commit: # IGNITE-368 Reworked test.
Date Wed, 18 Mar 2015 14:06:32 GMT
# IGNITE-368 Reworked test.


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

Branch: refs/heads/ignite-424
Commit: 4d0cc8a8a924929ade342809b438e776968bf77e
Parents: 78bdc26
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Tue Mar 17 10:36:28 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Tue Mar 17 10:36:28 2015 +0700

----------------------------------------------------------------------
 .../internal/util/IgniteExceptionRegistrySelfTest.java       | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4d0cc8a8/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 a9b6778..f9805e1 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
@@ -42,7 +42,13 @@ public class IgniteExceptionRegistrySelfTest extends GridCommonAbstractTest
{
 
         Collection<IgniteExceptionRegistry.ExceptionInfo> errors = registry.getErrors(0);
 
-        assertEquals(expCnt, errors.size());
+        if (expCnt != errors.size()) {
+            for (IgniteExceptionRegistry.ExceptionInfo e : errors)
+                if (!e.message().startsWith("Test "))
+                    info(e.message() + " " + e.error());
+
+            assert false;
+        }
 
         int i = expCnt - 1;
 


Mime
View raw message