ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/3] ignite git commit: Improved tests for cache read throug with evictions
Date Wed, 06 Apr 2016 10:19:33 GMT
Improved tests for cache read throug with evictions


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

Branch: refs/heads/ignite-2004
Commit: b9cf586f58ea3dfe87bdef7d8013dd6c5bbd453f
Parents: 7f94b2f
Author: Denis Magda <dmagda@gridgain.com>
Authored: Wed Apr 6 12:26:24 2016 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Wed Apr 6 12:26:24 2016 +0300

----------------------------------------------------------------------
 ...ReadThroughEvictionOffheapTiredSelfTest.java | 30 ++++++++++++++++++++
 .../IgniteCacheReadThroughEvictionSelfTest.java |  7 +++++
 2 files changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/b9cf586f/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionOffheapTiredSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionOffheapTiredSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionOffheapTiredSelfTest.java
new file mode 100644
index 0000000..a8ad4ee
--- /dev/null
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionOffheapTiredSelfTest.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.processors.cache;
+
+import org.apache.ignite.cache.CacheMemoryMode;
+
+/**
+ *
+ */
+public class IgniteCacheReadThroughEvictionOffheapTiredSelfTest extends IgniteCacheReadThroughEvictionSelfTest
{
+    /** {@inheritDoc} */
+    @Override protected CacheMemoryMode cacheMemoryMode() {
+        return CacheMemoryMode.OFFHEAP_TIERED;
+    }
+}

http://git-wip-us.apache.org/repos/asf/ignite/blob/b9cf586f/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionSelfTest.java
index d8768eb..1d8de74 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheReadThroughEvictionSelfTest.java
@@ -21,6 +21,7 @@ import org.apache.ignite.Ignite;
 import org.apache.ignite.IgniteCache;
 import org.apache.ignite.IgniteCheckedException;
 import org.apache.ignite.cache.CacheAtomicityMode;
+import org.apache.ignite.cache.CacheMemoryMode;
 import org.apache.ignite.cache.CacheMode;
 import org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy;
 import org.apache.ignite.cache.store.CacheStore;
@@ -103,6 +104,7 @@ public class IgniteCacheReadThroughEvictionSelfTest extends GridCommonAbstractTe
         cc.setAtomicityMode(atomicityMode());
         cc.setLoadPreviousValue(false);
         cc.setCacheMode(cacheMode());
+        cc.setMemoryMode(cacheMemoryMode());
         cc.setReadThrough(true);
         cc.setWriteThrough(true);
         cc.setBackups(1);
@@ -122,6 +124,11 @@ public class IgniteCacheReadThroughEvictionSelfTest extends GridCommonAbstractTe
         return PARTITIONED;
     }
 
+    /** {@inheritDoc} */
+    protected CacheMemoryMode cacheMemoryMode() {
+        return CacheMemoryMode.ONHEAP_TIERED;
+    }
+
     /**
      * @throws Exception if failed.
      */


Mime
View raw message