ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [23/50] incubator-ignite git commit: #ignite-565: Fix GridCommonAbstractTest.dht.
Date Fri, 27 Mar 2015 12:59:54 GMT
#ignite-565: Fix GridCommonAbstractTest.dht.


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

Branch: refs/heads/ignite-611
Commit: 5d7568a8f4fe5d7f48867c87fb571c5016473a2c
Parents: 15334cc
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Mar 25 19:39:56 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Mar 25 19:39:56 2015 +0300

----------------------------------------------------------------------
 .../testframework/junits/common/GridCommonAbstractTest.java       | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5d7568a8/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
b/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
index 6024a0a..a823894 100644
--- a/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/testframework/junits/common/GridCommonAbstractTest.java
@@ -156,8 +156,7 @@ public abstract class GridCommonAbstractTest extends GridAbstractTest
{
      * @return DHT cache.
      */
     private static <K, V> GridDhtCacheAdapter<K, V> dht(Ignite ignite, CacheConfiguration
cfg) {
-        GridNearCacheAdapter<K, V> adapter = near(ignite, cfg.getName());
-        return nearEnabled(cfg) ? adapter.dht() :
+        return nearEnabled(cfg) ? ((GridNearCacheAdapter)near(ignite, cfg.getName())).dht()
:
             ((IgniteKernal)ignite).<K, V>internalCache(cfg.getName()).context().dht();
     }
 


Mime
View raw message