ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: #ignite-51: Change message test.
Date Mon, 02 Mar 2015 15:09:07 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-51 9c41c79b4 -> 5850e1c3a


#ignite-51: Change message 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/5850e1c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5850e1c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5850e1c3

Branch: refs/heads/ignite-51
Commit: 5850e1c3ae211138588650add2565351dab3a316
Parents: 9c41c79
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Mon Mar 2 18:09:04 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Mon Mar 2 18:09:04 2015 +0300

----------------------------------------------------------------------
 .../spi/communication/GridCacheMessageSelfTest.java       | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5850e1c3/modules/core/src/test/java/org/apache/ignite/spi/communication/GridCacheMessageSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/spi/communication/GridCacheMessageSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/spi/communication/GridCacheMessageSelfTest.java
index f4dc59f..2749030 100644
--- a/modules/core/src/test/java/org/apache/ignite/spi/communication/GridCacheMessageSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/spi/communication/GridCacheMessageSelfTest.java
@@ -107,7 +107,7 @@ public class GridCacheMessageSelfTest extends GridCommonAbstractTest {
 
                         assertEquals(count, i);
 
-                        GridTestMessage msg2 = (GridTestMessage) msg1.message();
+                        GridTestMessage msg2 = (GridTestMessage) ((TestMessage1) msg1.message()).message();
 
                         assertEquals(count, msg2.getMsgId());
 
@@ -117,7 +117,7 @@ public class GridCacheMessageSelfTest extends GridCommonAbstractTest {
                     }
                 }
                 catch (Exception e) {
-                    fail("Exception " + e.getStackTrace());
+                    fail("Exception " + e.getMessage());
                 }
             }
         });
@@ -129,7 +129,11 @@ public class GridCacheMessageSelfTest extends GridCommonAbstractTest
{
 
             mes1.init(new GridTestMessage(grid(1).localNode().id(), i, 0), TEST_BODY + "_"
+ i);
 
-            msg.add(mes1);
+            TestMessage1 mes2 = new TestMessage1();
+
+            mes2.init(mes1, TEST_BODY + "_" + i);
+
+            msg.add(mes2);
         }
 
         mgr0.send(grid(1).localNode(), topic, msg, GridIoPolicy.PUBLIC_POOL);


Mime
View raw message