ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # ignite-sprint-3 fixed test
Date Thu, 02 Apr 2015 07:15:44 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-sprint-3 69f507918 -> 505a7bf22


# ignite-sprint-3 fixed test


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

Branch: refs/heads/ignite-sprint-3
Commit: 505a7bf227b1396ac3ff2f3b08258dbd58c32698
Parents: 69f5079
Author: sboikov <sboikov@gridgain.com>
Authored: Thu Apr 2 10:15:34 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Thu Apr 2 10:15:34 2015 +0300

----------------------------------------------------------------------
 .../cache/GridCacheOnCopyFlagAbstractSelfTest.java  | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/505a7bf2/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOnCopyFlagAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOnCopyFlagAbstractSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOnCopyFlagAbstractSelfTest.java
index b2906f8..538567c 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOnCopyFlagAbstractSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOnCopyFlagAbstractSelfTest.java
@@ -93,6 +93,8 @@ public abstract class GridCacheOnCopyFlagAbstractSelfTest extends GridCacheAbstr
 
         c.setDiscoverySpi(spi);
 
+        c.setPeerClassLoadingEnabled(false);
+
         c.getTransactionConfiguration().setTxSerializableEnabled(true);
 
         return c;
@@ -388,13 +390,13 @@ public abstract class GridCacheOnCopyFlagAbstractSelfTest extends GridCacheAbstr
 
             TestImmutableValue val0 = entry.rawGet().value(cctx.cacheObjectContext(), false);
 
-            assertSame(val0, e.getValue());
+            assertNotSame(val0, e.getValue());
 
             TestImmutableValue val1 = entry.rawGet().value(cctx.cacheObjectContext(), true);
 
-            assertSame(val0, val1);
+            assertNotSame(val0, val1);
 
-            assertSame(e.getValue(), cache.get(e.getKey()));
+            assertNotSame(e.getValue(), cache.get(e.getKey()));
         }
     }
 
@@ -410,7 +412,7 @@ public abstract class GridCacheOnCopyFlagAbstractSelfTest extends GridCacheAbstr
 
         for (int i = 0; i < ITER_CNT; i++) {
             String key = String.valueOf(i);
-            Long val = (long)i;
+            Long val = Long.MAX_VALUE - i;
 
             cache.put(key, val);
 
@@ -436,13 +438,13 @@ public abstract class GridCacheOnCopyFlagAbstractSelfTest extends GridCacheAbstr
 
             Long val0 = entry.rawGet().value(cctx.cacheObjectContext(), false);
 
-            assertSame(val0, e.getValue());
+            assertNotSame(val0, e.getValue());
 
             Long val1 = entry.rawGet().value(cctx.cacheObjectContext(), true);
 
-            assertSame(val0, val1);
+            assertNotSame(val0, val1);
 
-            assertSame(e.getValue(), cache.get(e.getKey()));
+            assertNotSame(e.getValue(), cache.get(e.getKey()));
         }
     }
 


Mime
View raw message