#ignite-565: fix 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/417961f7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/417961f7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/417961f7 Branch: refs/heads/ignite-443 Commit: 417961f77027c6c87eb158ea9bc0a181d6f3cf7b Parents: bb6c70b Author: ivasilinets <ivasilin...@gridgain.com> Authored: Thu Mar 26 14:09:59 2015 +0300 Committer: ivasilinets <ivasilin...@gridgain.com> Committed: Thu Mar 26 14:09:59 2015 +0300 ---------------------------------------------------------------------- .../cache/distributed/GridCacheEventAbstractTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/417961f7/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java index 5504a62..0d3421c 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/GridCacheEventAbstractTest.java @@ -237,7 +237,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe String key = e.getKey(); Integer val = e.getValue(); - Transaction tx = grid(0).transactions().txStart(); + Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(); assert cache.getAndPut(key, val) == null; @@ -269,7 +269,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe String key = e.getKey(); Integer val = e.getValue(); - Transaction tx = grid(0).transactions().txStart(); + Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(); assert cache.getAndPut(key, val) == null; @@ -345,7 +345,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe String key = e.getKey(); Integer val = e.getValue(); - Transaction tx = grid(0).transactions().txStart(); + Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(); asyncCache.getAndPut(key, val); @@ -385,7 +385,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe String key = e.getKey(); Integer val = e.getValue(); - Transaction tx = grid(0).transactions().txStart(); + Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(); asyncCache.getAndPut(key, val); @@ -453,7 +453,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe String key = e.getKey(); Integer val = e.getValue(); - Transaction tx = grid(0).transactions().txStart(); + Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(); cache.put(key, val); @@ -483,7 +483,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe String key = e.getKey(); Integer val = e.getValue(); - Transaction tx = grid(0).transactions().txStart(); + Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(); cache.put(key, val); @@ -630,7 +630,7 @@ public abstract class GridCacheEventAbstractTest extends GridCacheAbstractSelfTe Iterator<Map.Entry<String, Integer>> iter = pairs(2).entrySet().iterator(); // Optimistic transaction. - try (Transaction tx = grid(0).transactions().txStart(OPTIMISTIC, REPEATABLE_READ)) { + try (Transaction tx = cache.unwrap(Ignite.class).transactions().txStart(OPTIMISTIC, REPEATABLE_READ)) { Map.Entry<String, Integer> e = iter.next(); String key = e.getKey();