diff options
author | Justin Clark-Casey (justincc) | 2013-01-25 01:55:27 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-25 01:55:27 +0000 |
commit | ba369c5cfe89706c0e7261e699dac1d0c3c68cd6 (patch) | |
tree | 225297d8f293fa1fde0aa91d4888ea721d0b4b7e /OpenSim/Region | |
parent | Add basic JsonCreateStore() regression test (diff) | |
download | opensim-SC-ba369c5cfe89706c0e7261e699dac1d0c3c68cd6.zip opensim-SC-ba369c5cfe89706c0e7261e699dac1d0c3c68cd6.tar.gz opensim-SC-ba369c5cfe89706c0e7261e699dac1d0c3c68cd6.tar.bz2 opensim-SC-ba369c5cfe89706c0e7261e699dac1d0c3c68cd6.tar.xz |
Add basic JsonGetValue() regression test.
Diffstat (limited to 'OpenSim/Region')
-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 4b6ddd6..204bab1 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | |||
@@ -82,5 +82,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
82 | 82 | ||
83 | Assert.That(storeId, Is.Not.EqualTo(UUID.Zero)); | 83 | Assert.That(storeId, Is.Not.EqualTo(UUID.Zero)); |
84 | } | 84 | } |
85 | |||
86 | [Test] | ||
87 | public void TestJsonGetValue() | ||
88 | { | ||
89 | TestHelpers.InMethod(); | ||
90 | // log4net.Config.XmlConfigurator.Configure(); | ||
91 | |||
92 | UUID storeId | ||
93 | = (UUID)m_smcm.InvokeOperation( | ||
94 | UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ 'Hello' : 'World' }" }); | ||
95 | |||
96 | string value | ||
97 | = (string)m_smcm.InvokeOperation( | ||
98 | UUID.Zero, UUID.Zero, "JsonGetValue", new object[] { storeId, "Hello" }); | ||
99 | |||
100 | Assert.That(value, Is.EqualTo("World")); | ||
101 | } | ||
85 | } | 102 | } |
86 | } \ No newline at end of file | 103 | } \ No newline at end of file |