ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [28/50] ignite git commit: Adding tests
Date Wed, 13 Apr 2016 14:53:27 GMT
Adding tests


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

Branch: refs/heads/ignite-2977
Commit: ba040da3c53cc17e137657f6f81484ebb02286e5
Parents: 6fab8b1
Author: Pavel Tupitsyn <ptupitsyn@gridgain.com>
Authored: Wed Apr 13 13:32:30 2016 +0300
Committer: Pavel Tupitsyn <ptupitsyn@gridgain.com>
Committed: Wed Apr 13 13:32:30 2016 +0300

----------------------------------------------------------------------
 .../apache/ignite/platform/PlatformCacheEntryEventFilter.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ba040da3/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilter.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilter.java
b/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilter.java
index cc790e2..22e5691 100644
--- a/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilter.java
+++ b/modules/core/src/test/java/org/apache/ignite/platform/PlatformCacheEntryEventFilter.java
@@ -91,9 +91,9 @@ public class PlatformCacheEntryEventFilter implements CacheEntryEventSerializabl
         assert uintField == 6;
         assert longField == 7;
         assert ulongField == 8;
-        assert floatField == 9.99;
+        assert floatField == (float)9.99;
         assert doubleField == 10.123;
-        assert decimalField.compareTo(new BigDecimal(11.245)) == 0;
+        assert "11.245".equals(decimalField.toString());
         assert boolField;
 
         return ((String)event.getValue()).startsWith(startsWith);


Mime
View raw message