diff options
author | Justin Clark-Casey (justincc) | 2013-02-07 23:30:03 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-07 23:30:03 +0000 |
commit | 2e86978b609e3e2013a8f4c53f9afc9ed239d20b (patch) | |
tree | b53c2cb8ebd313182bdd72e090ec727919a3aad8 /OpenSim/Region/OptionalModules/Scripting/JsonStore | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-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')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | 14 |
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(); |