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-99: wip.
Date Tue, 27 Jan 2015 16:09:23 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-99-2 0be7e6eca -> a8d39b00a


#IGNITE-99: wip.


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

Branch: refs/heads/ignite-99-2
Commit: a8d39b00aafe00c8e820fe4a668e0586e8d6d54c
Parents: 0be7e6e
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Tue Jan 27 19:09:18 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Tue Jan 27 19:09:18 2015 +0300

----------------------------------------------------------------------
 .../test/java/org/apache/ignite/IgniteCacheAffinityTest.java | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a8d39b00/modules/core/src/test/java/org/apache/ignite/IgniteCacheAffinityTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/IgniteCacheAffinityTest.java b/modules/core/src/test/java/org/apache/ignite/IgniteCacheAffinityTest.java
index c1fdb28..fce29ed 100644
--- a/modules/core/src/test/java/org/apache/ignite/IgniteCacheAffinityTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/IgniteCacheAffinityTest.java
@@ -113,6 +113,7 @@ public class IgniteCacheAffinityTest extends IgniteCacheAbstractTest {
         checkIsBackupOrPrimary(testAff, aff);
         checkMapKeyToNode(testAff, aff);
         checkMapKeysToNodes(testAff, aff);
+        checkMapPartitionToNode(testAff, aff);
         checkMapPartitionsToNodes(testAff, aff);
     }
 
@@ -152,7 +153,7 @@ public class IgniteCacheAffinityTest extends IgniteCacheAbstractTest {
     }
 
     /**
-     * Check mapKeyToNode, mapKeyToPrimaryAndBackups, mapPartitionToPrimaryAndBackups and
mapPartitionToNode methods.
+     * Check mapKeyToNode, mapKeyToPrimaryAndBackups methods.
      */
     private void checkMapKeyToNode(CacheAffinity testAff, CacheAffinity aff) {
         for (int i = 0; i < 10000; i++) {
@@ -160,7 +161,12 @@ public class IgniteCacheAffinityTest extends IgniteCacheAbstractTest
{
 
             checkEqualCollection(testAff.mapKeyToPrimaryAndBackups(i), aff.mapKeyToPrimaryAndBackups(i));
         }
+    }
 
+    /**
+     * Check mapPartitionToPrimaryAndBackups and mapPartitionToNode methods.
+     */
+    private void checkMapPartitionToNode(CacheAffinity testAff, CacheAffinity aff) {
         assertEquals(aff.partitions(), testAff.partitions());
 
         for (int part = 0; part < aff.partitions(); ++part) {


Mime
View raw message