diff options
author | Justin Clark-Casey (justincc) | 2013-01-25 02:12:15 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-25 02:12:28 +0000 |
commit | 844e60da0f81454318519445f7c30fa02cf524f2 (patch) | |
tree | 67ad6fd9df27cf437e6d800b6f9e4acd704b782f /OpenSim | |
parent | Add regression test for JsonSetValue() (diff) | |
download | opensim-SC-844e60da0f81454318519445f7c30fa02cf524f2.zip opensim-SC-844e60da0f81454318519445f7c30fa02cf524f2.tar.gz opensim-SC-844e60da0f81454318519445f7c30fa02cf524f2.tar.bz2 opensim-SC-844e60da0f81454318519445f7c30fa02cf524f2.tar.xz |
Add JsonTestPath() regression test
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | 17 |
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(); |