aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-30 05:56:30 +0000
committerJustin Clark-Casey (justincc)2013-01-30 05:56:30 +0000
commitd42c7afe3fc5d226dffea3bb50e4e2963eb96f3b (patch)
tree7fea14283844192e5d93b4c7c5669bc480718548 /OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
parentrefactor: Make invocations of json store functions from the regression test s... (diff)
downloadopensim-SC_OLD-d42c7afe3fc5d226dffea3bb50e4e2963eb96f3b.zip
opensim-SC_OLD-d42c7afe3fc5d226dffea3bb50e4e2963eb96f3b.tar.gz
opensim-SC_OLD-d42c7afe3fc5d226dffea3bb50e4e2963eb96f3b.tar.bz2
opensim-SC_OLD-d42c7afe3fc5d226dffea3bb50e4e2963eb96f3b.tar.xz
Add JsonDestroyStore() basic regression test
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 297d7c1..8042a93 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -99,6 +99,21 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
99 } 99 }
100 100
101 [Test] 101 [Test]
102 public void TestJsonDestroyStore()
103 {
104 TestHelpers.InMethod();
105// TestHelpers.EnableLogging();
106
107 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : 'World' }");
108 int dsrv = (int)InvokeOp("JsonDestroyStore", storeId);
109
110 Assert.That(dsrv, Is.EqualTo(1));
111
112 int tprv = (int)InvokeOp("JsonTestPath", storeId, "Hello");
113 Assert.That(tprv, Is.EqualTo(0));
114 }
115
116 [Test]
102 public void TestJsonGetValue() 117 public void TestJsonGetValue()
103 { 118 {
104 TestHelpers.InMethod(); 119 TestHelpers.InMethod();