aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs22
1 files changed, 18 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 98b5624..5484d8d 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -135,6 +135,20 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
135 } 135 }
136 136
137 [Test] 137 [Test]
138 public void TestJsonDestroyStoreNotExists()
139 {
140 TestHelpers.InMethod();
141// TestHelpers.EnableLogging();
142
143 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
144
145 int dsrv = (int)InvokeOp("JsonDestroyStore", fakeStoreId);
146
147 // XXX: Current returns 'true' even though no such store existed. Need to ask if this is best behaviour.
148 Assert.That(dsrv, Is.EqualTo(1));
149 }
150
151 [Test]
138 public void TestJsonGetValue() 152 public void TestJsonGetValue()
139 { 153 {
140 TestHelpers.InMethod(); 154 TestHelpers.InMethod();
@@ -205,13 +219,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
205 TestHelpers.InMethod(); 219 TestHelpers.InMethod();
206// TestHelpers.EnableLogging(); 220// TestHelpers.EnableLogging();
207 221
208 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{}"); 222 UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ }");
209 223
210 int result = (int)InvokeOp("JsonSetValue", storeId, "Hello", "World"); 224 int result = (int)InvokeOp("JsonSetValue", storeId, "Fun", "Times");
211 Assert.That(result, Is.EqualTo(1)); 225 Assert.That(result, Is.EqualTo(1));
212 226
213 string value = (string)InvokeOp("JsonGetValue", storeId, "Hello"); 227 string value = (string)InvokeOp("JsonGetValue", storeId, "Fun");
214 Assert.That(value, Is.EqualTo("World")); 228 Assert.That(value, Is.EqualTo("Times"));
215 } 229 }
216 230
217 /// <summary> 231 /// <summary>