aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-02-07 23:52:28 +0000
committerJustin Clark-Casey (justincc)2013-02-07 23:52:28 +0000
commit715d6f2da1fa9fb770899a399ccbece2d35a2323 (patch)
tree47e6fe5ebbb2e9ec2996778d743f320e14d8a1ea /OpenSim
parentActually plumb the new values to physics. (diff)
downloadopensim-SC_OLD-715d6f2da1fa9fb770899a399ccbece2d35a2323.zip
opensim-SC_OLD-715d6f2da1fa9fb770899a399ccbece2d35a2323.tar.gz
opensim-SC_OLD-715d6f2da1fa9fb770899a399ccbece2d35a2323.tar.bz2
opensim-SC_OLD-715d6f2da1fa9fb770899a399ccbece2d35a2323.tar.xz
Add testing for getting non-existing values and values from a non-existing datastore to TestJsonGetValue()
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 5484d8d..d341901 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -158,6 +158,15 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
158 158
159 string value = (string)InvokeOp("JsonGetValue", storeId, "Hello"); 159 string value = (string)InvokeOp("JsonGetValue", storeId, "Hello");
160 Assert.That(value, Is.EqualTo("World")); 160 Assert.That(value, Is.EqualTo("World"));
161
162 // Test get of non-existing value
163 string fakeValueGet = (string)InvokeOp("JsonGetValue", storeId, "foo");
164 Assert.That(fakeValueGet, Is.EqualTo(""));
165
166 // Test get from non-existing store
167 UUID fakeStoreId = TestHelpers.ParseTail(0x500);
168 string fakeStoreValueGet = (string)InvokeOp("JsonGetValue", fakeStoreId, "Hello");
169 Assert.That(fakeStoreValueGet, Is.EqualTo(""));
161 } 170 }
162 171
163// [Test] 172// [Test]
@@ -239,7 +248,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
239 public void TestJsonWriteReadNotecard() 248 public void TestJsonWriteReadNotecard()
240 { 249 {
241 TestHelpers.InMethod(); 250 TestHelpers.InMethod();
242 TestHelpers.EnableLogging(); 251// TestHelpers.EnableLogging();
243 252
244 string notecardName = "nc1"; 253 string notecardName = "nc1";
245 254