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/09/08 14:46:04 UTC
[22/50] ignite git commit: TestCreateNewStoreData added
TestCreateNewStoreData added
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/78d184da
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/78d184da
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/78d184da
Branch: refs/heads/ignite-3199-1
Commit: 78d184da4f4558f743f8ffd4f45ea72ac7e9a1c2
Parents: c413cc1
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Mon Sep 5 19:54:32 2016 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Mon Sep 5 19:54:32 2016 +0300
----------------------------------------------------------------------
.../IgniteSessionStateStoreProviderTest.cs | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/78d184da/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateStoreProviderTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateStoreProviderTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateStoreProviderTest.cs
index f6a81b5..97ec63e 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateStoreProviderTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/AspNet/IgniteSessionStateStoreProviderTest.cs
@@ -246,6 +246,25 @@ namespace Apache.Ignite.Core.Tests.AspNet
}
/// <summary>
+ /// Tests the create new store data.
+ /// </summary>
+ [Test]
+ public void TestCreateNewStoreData()
+ {
+ var provider = GetProvider();
+
+ var data = provider.CreateNewStoreData(HttpContext, 56);
+
+ Assert.AreEqual(56, data.Timeout);
+ Assert.IsEmpty(data.Items);
+ Assert.IsEmpty(data.StaticObjects);
+
+ // Check that caches are empty.
+ var ignite = Ignition.GetIgnite(GridName);
+ Assert.IsFalse(ignite.GetCacheNames().SelectMany(x => ignite.GetCache<int, int>(x)).Any());
+ }
+
+ /// <summary>
/// Tests the expiry.
/// </summary>
[Test]