aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-25 02:08:33 +0000
committerJustin Clark-Casey (justincc)2013-01-25 02:08:33 +0000
commitf32361d595e0ee11066fa78627fe91936743a5e8 (patch)
tree76afb80e6c25d240e71339a9d448ef90d8b6fbc2 /OpenSim
parentminor: remove mono compiler warning in SceneCommandsModule (diff)
downloadopensim-SC_OLD-f32361d595e0ee11066fa78627fe91936743a5e8.zip
opensim-SC_OLD-f32361d595e0ee11066fa78627fe91936743a5e8.tar.gz
opensim-SC_OLD-f32361d595e0ee11066fa78627fe91936743a5e8.tar.bz2
opensim-SC_OLD-f32361d595e0ee11066fa78627fe91936743a5e8.tar.xz
Add regression test for JsonSetValue()
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 204bab1..0e8b1ca 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -99,5 +99,28 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
99 99
100 Assert.That(value, Is.EqualTo("World")); 100 Assert.That(value, Is.EqualTo("World"));
101 } 101 }
102
103 [Test]
104 public void TestJsonSetValue()
105 {
106 TestHelpers.InMethod();
107// log4net.Config.XmlConfigurator.Configure();
108
109 UUID storeId
110 = (UUID)m_smcm.InvokeOperation(
111 UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ }" });
112
113 int result
114 = (int)m_smcm.InvokeOperation(
115 UUID.Zero, UUID.Zero, "JsonSetValue", new object[] { storeId, "Hello", "World" });
116
117 Assert.That(result, Is.EqualTo(1));
118
119 string value
120 = (string)m_smcm.InvokeOperation(
121 UUID.Zero, UUID.Zero, "JsonGetValue", new object[] { storeId, "Hello" });
122
123 Assert.That(value, Is.EqualTo("World"));
124 }
102 } 125 }
103} \ No newline at end of file 126} \ No newline at end of file