Fix tests to match new withKeepBinary() interface
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/31c2dc07 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/31c2dc07 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/31c2dc07 Branch: refs/heads/ignite-2693 Commit: 31c2dc07554977e7001fa0809df6df66b3980195 Parents: 150600a Author: Oddo Da <[email protected]> Authored: Wed Mar 9 15:28:42 2016 -0600 Committer: Oddo Da <[email protected]> Committed: Wed Mar 9 15:28:42 2016 -0600 ---------------------------------------------------------------------- .../GridCacheOffHeapTieredEvictionAbstractSelfTest.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/31c2dc07/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapTieredEvictionAbstractSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapTieredEvictionAbstractSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapTieredEvictionAbstractSelfTest.java index e75abf6..49412d2 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapTieredEvictionAbstractSelfTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapTieredEvictionAbstractSelfTest.java @@ -25,8 +25,12 @@ import java.util.concurrent.ThreadLocalRandom; import javax.cache.Cache; import javax.cache.processor.EntryProcessor; import javax.cache.processor.MutableEntry; + +import org.apache.ignite.Ignite; import org.apache.ignite.IgniteCache; +import org.apache.ignite.Ignition; import org.apache.ignite.configuration.CacheConfiguration; +import org.apache.ignite.configuration.IgniteConfiguration; import org.apache.ignite.internal.util.typedef.P1; import org.apache.ignite.internal.util.typedef.internal.SB; import org.apache.ignite.testframework.GridTestUtils; @@ -170,9 +174,9 @@ public abstract class GridCacheOffHeapTieredEvictionAbstractSelfTest extends Gri */ public void testTransform() throws Exception { /* we need to enforce binary marshaller in this test since IGNITE-2693 */ - final CacheConfiguration<Integer, Object> cacheCfg = new CacheConfiguration("test"); - cacheCfg.setStoreKeepBinary(true); - final IgniteCache<Integer, Object> cache = grid(0).createCache(cacheCfg).withKeepBinary(); + final IgniteConfiguration iCfg = new IgniteConfiguration(); + final Ignite ignite = Ignition.start(iCfg); + final IgniteCache<Integer, Object> cache = ignite.cache("test_cache").withKeepBinary(); GridTestUtils.runMultiThreaded(new Callable<Void>() { @Override public Void call() throws Exception {
