aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-25 02:12:15 +0000
committerJustin Clark-Casey (justincc)2013-01-25 02:12:28 +0000
commit844e60da0f81454318519445f7c30fa02cf524f2 (patch)
tree67ad6fd9df27cf437e6d800b6f9e4acd704b782f /OpenSim/Region/OptionalModules
parentAdd regression test for JsonSetValue() (diff)
downloadopensim-SC_OLD-844e60da0f81454318519445f7c30fa02cf524f2.zip
opensim-SC_OLD-844e60da0f81454318519445f7c30fa02cf524f2.tar.gz
opensim-SC_OLD-844e60da0f81454318519445f7c30fa02cf524f2.tar.bz2
opensim-SC_OLD-844e60da0f81454318519445f7c30fa02cf524f2.tar.xz
Add JsonTestPath() regression test
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
index 0e8b1ca..06e4761 100644
--- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs
@@ -101,6 +101,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
101 } 101 }
102 102
103 [Test] 103 [Test]
104 public void TestJsonTestPath()
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[] { "{ 'Hello' : 'World' }" });
112
113 int result
114 = (int)m_smcm.InvokeOperation(
115 UUID.Zero, UUID.Zero, "JsonTestPath", new object[] { storeId, "Hello" });
116
117 Assert.That(result, Is.EqualTo(1));
118 }
119
120 [Test]
104 public void TestJsonSetValue() 121 public void TestJsonSetValue()
105 { 122 {
106 TestHelpers.InMethod(); 123 TestHelpers.InMethod();