aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-02-07 23:30:03 +0000
committerJustin Clark-Casey (justincc)2013-02-07 23:30:03 +0000
commit2e86978b609e3e2013a8f4c53f9afc9ed239d20b (patch)
treeb53c2cb8ebd313182bdd72e090ec727919a3aad8 /OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-2e86978b609e3e2013a8f4c53f9afc9ed239d20b.zip
opensim-SC-2e86978b609e3e2013a8f4c53f9afc9ed239d20b.tar.gz
opensim-SC-2e86978b609e3e2013a8f4c53f9afc9ed239d20b.tar.bz2
opensim-SC-2e86978b609e3e2013a8f4c53f9afc9ed239d20b.tar.xz
Add TestJsonDestoreStoreNotExists()
This still returns true even if we ask to destroy a store that does not exist. Need to check that this is more appropriate behaviour.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index aea94ea..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();