Adding tests
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8921d7f7 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8921d7f7 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8921d7f7 Branch: refs/heads/ignite-2977 Commit: 8921d7f7c5fc886f9a201e8063ab4743ebc32c1b Parents: bd5b595 Author: Pavel Tupitsyn <[email protected]> Authored: Wed Apr 13 13:01:43 2016 +0300 Committer: Pavel Tupitsyn <[email protected]> Committed: Wed Apr 13 13:01:43 2016 +0300 ---------------------------------------------------------------------- .../Cache/Query/Continuous/ContinuousQueryJavaFilterTest.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/8921d7f7/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 1122ca5..95a3bdf 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 @@ -22,6 +22,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Continuous using System.Linq; using Apache.Ignite.Core.Cache.Event; using Apache.Ignite.Core.Cache.Query.Continuous; + using Apache.Ignite.Core.Common; using Apache.Ignite.Core.Interop; using NUnit.Framework; @@ -127,7 +128,9 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Continuous { var filter = new JavaObject("blabla").ToCacheEntryEventFilter<int, string>(); - TestFilter(filter); + var ex = Assert.Throws<IgniteException>(() => TestFilter(filter)); + + Assert.IsTrue(ex.Message.StartsWith("Java object/factory class is not found")); } /// <summary> @@ -143,7 +146,9 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Continuous var filter = javaObject.ToCacheEntryEventFilter<int, string>(); - TestFilter(filter); + var ex = Assert.Throws<IgniteException>(() => TestFilter(filter)); + + Assert.IsTrue(ex.Message.StartsWith("Java object/factory class field is not found")); } /// <summary>
