ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [23/26] incubator-ignite git commit: # IGNITE-56 Use IgniteCache in the tests.
Date Mon, 09 Feb 2015 03:20:24 GMT
# IGNITE-56 Use IgniteCache in the tests.


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

Branch: refs/heads/ignite-51
Commit: 33e3b38c533be607d062b91a6642bff0758f5180
Parents: 252ccdf
Author: sevdokimov <sergey.evdokimov@jetbrains.com>
Authored: Mon Feb 9 00:59:43 2015 +0300
Committer: sevdokimov <sergey.evdokimov@jetbrains.com>
Committed: Mon Feb 9 01:00:08 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/GridCacheAffinityBackupsSelfTest.java | 4 ++--
 .../processors/cache/GridCacheAbstractFullApiSelfTest.java       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/33e3b38c/modules/core/src/test/java/org/apache/ignite/GridCacheAffinityBackupsSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/GridCacheAffinityBackupsSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/GridCacheAffinityBackupsSelfTest.java
index 1c40c71..581f22a 100644
--- a/modules/core/src/test/java/org/apache/ignite/GridCacheAffinityBackupsSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/GridCacheAffinityBackupsSelfTest.java
@@ -90,12 +90,12 @@ public class GridCacheAffinityBackupsSelfTest extends GridCommonAbstractTest
{
         startGrids(nodesCnt);
 
         try {
-            GridCache<Object, Object> cache = grid(0).cache(null);
+            IgniteCache<Object, Object> cache = jcache(0);
 
             Collection<UUID> members = new HashSet<>();
 
             for (int i = 0; i < 10000; i++) {
-                Collection<ClusterNode> nodes = cache.affinity().mapKeyToPrimaryAndBackups(i);
+                Collection<ClusterNode> nodes = affinity(cache).mapKeyToPrimaryAndBackups(i);
 
                 assertEquals(backups + 1, nodes.size());
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/33e3b38c/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
index f41f2ef..e5e92f7 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheAbstractFullApiSelfTest.java
@@ -1816,10 +1816,10 @@ public abstract class GridCacheAbstractFullApiSelfTest extends GridCacheAbstract
 
         for (int i = 0; i < gridCount(); i++) {
             info("Peek key on grid [i=" + i + ", nodeId=" + grid(i).localNode().id() +
-                ", peekVal=" + grid(i).cache(null).peek("key") + ']');
+                ", peekVal=" + grid(i).jcache(null).localPeek("key", CachePeekMode.ONHEAP)
+ ']');
 
             info("Peek key2 on grid [i=" + i + ", nodeId=" + grid(i).localNode().id() +
-                ", peekVal=" + grid(i).cache(null).peek("key2") + ']');
+                ", peekVal=" + grid(i).jcache(null).localPeek("key2", CachePeekMode.ONHEAP)
+ ']');
         }
 
         assertEquals((Integer)6, cache.get("key2"));


Mime
View raw message