You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/04/13 16:53:40 UTC
[41/50] ignite git commit: add collection tests
add collection tests
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8b54f080
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8b54f080
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8b54f080
Branch: refs/heads/ignite-2977
Commit: 8b54f0800a2b4b2ddd7874564e834ce0c7b5b17a
Parents: 0de7d70
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Apr 13 14:51:31 2016 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Apr 13 14:51:31 2016 +0300
----------------------------------------------------------------------
.../ignite/platform/PlatformCacheEntryEventFilter.java | 11 ++++++++++-
.../Query/Continuous/ContinuousQueryJavaFilterTest.cs | 5 ++++-
2 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/8b54f080/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 42756dc3..24512b4 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
@@ -25,6 +25,8 @@ import org.apache.ignite.resources.IgniteInstanceResource;
import javax.cache.event.CacheEntryEvent;
import javax.cache.event.CacheEntryListenerException;
import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.HashMap;
import java.util.UUID;
/**
@@ -120,6 +122,12 @@ public class PlatformCacheEntryEventFilter implements CacheEntryEventSerializabl
/** Property to be set from platform. */
private Object[] objArr;
+ /** Property to be set from platform. */
+ private ArrayList arrayList;
+
+ /** Property to be set from platform. */
+ private HashMap hashTable;
+
/** Injected instance. */
@IgniteInstanceResource
private Ignite ignite;
@@ -160,7 +168,8 @@ public class PlatformCacheEntryEventFilter implements CacheEntryEventSerializabl
assert boolArr[0];
// check collections
- // TODO
+ assert "x".equals(arrayList.get(0));
+ assert "2".equals(hashTable.get(1));
// check binary object
assert objField != null && objField.field("Int") == 1 && "2".equals(objField.field("String"));
http://git-wip-us.apache.org/repos/asf/ignite/blob/8b54f080/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Continuous/ContinuousQueryJavaFilterTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Continuous/ContinuousQueryJavaFilterTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Continuous/ContinuousQueryJavaFilterTest.cs
index a907bf9..aa5676f 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Continuous/ContinuousQueryJavaFilterTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Continuous/ContinuousQueryJavaFilterTest.cs
@@ -20,6 +20,7 @@
namespace Apache.Ignite.Core.Tests.Cache.Query.Continuous
{
using System;
+ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Apache.Ignite.Core.Binary;
@@ -145,7 +146,9 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Continuous
String = "2"
}
}
- }
+ },
+ {"arrayList", new ArrayList {"x"}},
+ {"hashTable", new Hashtable {{1, "2"}}}
}
};