aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
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