Add JsonTestPath() regression test

0.7.4-extended
Justin Clark-Casey (justincc) 2013-01-25 02:12:15 +00:00
parent 3f50de6445
commit cf04e09521
1 changed files with 17 additions and 0 deletions

View File

@ -100,6 +100,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests
Assert.That(value, Is.EqualTo("World")); Assert.That(value, Is.EqualTo("World"));
} }
[Test]
public void TestJsonTestPath()
{
TestHelpers.InMethod();
// log4net.Config.XmlConfigurator.Configure();
UUID storeId
= (UUID)m_smcm.InvokeOperation(
UUID.Zero, UUID.Zero, "JsonCreateStore", new object[] { "{ 'Hello' : 'World' }" });
int result
= (int)m_smcm.InvokeOperation(
UUID.Zero, UUID.Zero, "JsonTestPath", new object[] { storeId, "Hello" });
Assert.That(result, Is.EqualTo(1));
}
[Test] [Test]
public void TestJsonSetValue() public void TestJsonSetValue()
{ {