You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/05/06 18:20:28 UTC
[50/50] incubator-ignite git commit: # ignite-648: fix
GridCachePartitionedMultiJvmFullApiSelfTest
# ignite-648: fix GridCachePartitionedMultiJvmFullApiSelfTest
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/671c05d5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/671c05d5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/671c05d5
Branch: refs/heads/ignite-648
Commit: 671c05d566ac92e127ce0829169bf8d5f38d1f40
Parents: d71957e
Author: Artem Shutak <as...@gridgain.com>
Authored: Wed May 6 19:19:31 2015 +0300
Committer: Artem Shutak <as...@gridgain.com>
Committed: Wed May 6 19:19:31 2015 +0300
----------------------------------------------------------------------
...CachePartitionedMultiJvmFullApiSelfTest.java | 68 --------------------
1 file changed, 68 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/671c05d5/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/multijvm/GridCachePartitionedMultiJvmFullApiSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/multijvm/GridCachePartitionedMultiJvmFullApiSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/multijvm/GridCachePartitionedMultiJvmFullApiSelfTest.java
index fa78e6d..336949a 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/multijvm/GridCachePartitionedMultiJvmFullApiSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/multijvm/GridCachePartitionedMultiJvmFullApiSelfTest.java
@@ -17,82 +17,14 @@
package org.apache.ignite.internal.processors.cache.multijvm;
-import org.apache.ignite.*;
import org.apache.ignite.internal.processors.cache.distributed.near.*;
-import org.apache.ignite.internal.util.typedef.internal.*;
/**
* Multy Jvm tests.
*/
public class GridCachePartitionedMultiJvmFullApiSelfTest extends GridCachePartitionedMultiNodeFullApiSelfTest {
/** {@inheritDoc} */
- @Override protected void afterTest() throws Exception {
- super.afterTest();
-
- IgniteExProcessProxy.killAll(); // TODO: remove processes killing from here.
- }
-
- /** {@inheritDoc} */
- @Override protected int gridCount() {
- return 2;
- }
-
- /** {@inheritDoc} */
protected boolean isMultiJvm() {
return true;
}
-
- /**
- * @throws Exception If failed.
- */
- public void testPutAllRemoveAll() throws Exception {
- super.testPutAllRemoveAll();
- }
-
- /**
- * @throws Exception If failed.
- */
- public void testPutRemove() throws Exception {
- IgniteCache<Object, Object> c0 = grid(0).cache(null);
- IgniteCache<Object, Object> c1 = grid(1).cache(null);
-
- final int key = 1;
- final int val = 3;
-
- c0.put(key, val);
-
- assertEquals(val, c0.get(key));
- assertEquals(val, c1.get(key));
-
- assertTrue(c1.remove(key));
-
- U.sleep(1_000);
-
- assertTrue(c0.get(key) == null || c1.get(key) == null);
- assertNull(c1.get(key));
- assertNull(c0.get(key));
- }
-
- /**
- * @throws Exception If failed.
- */
- public void testPutRemove2() throws Exception {
- IgniteCache<Object, Object> c0 = grid(0).cache(null);
- IgniteCache<Object, Object> c1 = grid(1).cache(null);
-
- final int key = 1;
- final int val = 3;
-
- c1.put(key, val);
-
- assertEquals(val, c1.get(key));
- assertEquals(val, c0.get(key));
-
- assertTrue(c0.remove(key));
-
- U.sleep(1_000);
-
- assertNull(c1.get(key));
- assertNull(c0.get(key));
- }
}