diff options
author | Justin Clark-Casey (justincc) | 2013-02-15 00:32:20 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-02-15 00:32:20 +0000 |
commit | 0b2608d8f4c715acf693565d57d2919dda4d7f18 (patch) | |
tree | 9f04359557a1704e2d81d8fec336e3810eb7bbb9 /OpenSim/Region/OptionalModules/Scripting | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-0b2608d8f4c715acf693565d57d2919dda4d7f18.zip opensim-SC-0b2608d8f4c715acf693565d57d2919dda4d7f18.tar.gz opensim-SC-0b2608d8f4c715acf693565d57d2919dda4d7f18.tar.bz2 opensim-SC-0b2608d8f4c715acf693565d57d2919dda4d7f18.tar.xz |
Comment out regression TestJsonTestPath and TestJsonTestPathJson as these will go away soon
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | 124 |
1 files changed, 62 insertions, 62 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs index 68eed1d..1c4737b 100644 --- a/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs +++ b/OpenSim/Region/OptionalModules/Scripting/JsonStore/Tests/JsonStoreScriptModuleTests.cs | |||
@@ -335,69 +335,69 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore.Tests | |||
335 | } | 335 | } |
336 | } | 336 | } |
337 | 337 | ||
338 | [Test] | 338 | // [Test] |
339 | public void TestJsonTestPath() | 339 | // public void TestJsonTestPath() |
340 | { | 340 | // { |
341 | TestHelpers.InMethod(); | 341 | // TestHelpers.InMethod(); |
342 | // TestHelpers.EnableLogging(); | 342 | //// TestHelpers.EnableLogging(); |
343 | 343 | // | |
344 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); | 344 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); |
345 | 345 | // | |
346 | { | 346 | // { |
347 | int result = (int)InvokeOp("JsonTestPath", storeId, "Hello.World"); | 347 | // int result = (int)InvokeOp("JsonTestPath", storeId, "Hello.World"); |
348 | Assert.That(result, Is.EqualTo(1)); | 348 | // Assert.That(result, Is.EqualTo(1)); |
349 | } | 349 | // } |
350 | 350 | // | |
351 | // Test for path which does not resolve to a value. | 351 | // // Test for path which does not resolve to a value. |
352 | { | 352 | // { |
353 | int result = (int)InvokeOp("JsonTestPath", storeId, "Hello"); | 353 | // int result = (int)InvokeOp("JsonTestPath", storeId, "Hello"); |
354 | Assert.That(result, Is.EqualTo(0)); | 354 | // Assert.That(result, Is.EqualTo(0)); |
355 | } | 355 | // } |
356 | 356 | // | |
357 | { | 357 | // { |
358 | int result2 = (int)InvokeOp("JsonTestPath", storeId, "foo"); | 358 | // int result2 = (int)InvokeOp("JsonTestPath", storeId, "foo"); |
359 | Assert.That(result2, Is.EqualTo(0)); | 359 | // Assert.That(result2, Is.EqualTo(0)); |
360 | } | 360 | // } |
361 | 361 | // | |
362 | // Test with fake store | 362 | // // Test with fake store |
363 | { | 363 | // { |
364 | UUID fakeStoreId = TestHelpers.ParseTail(0x500); | 364 | // UUID fakeStoreId = TestHelpers.ParseTail(0x500); |
365 | int fakeStoreValueRemove = (int)InvokeOp("JsonTestPath", fakeStoreId, "Hello"); | 365 | // int fakeStoreValueRemove = (int)InvokeOp("JsonTestPath", fakeStoreId, "Hello"); |
366 | Assert.That(fakeStoreValueRemove, Is.EqualTo(0)); | 366 | // Assert.That(fakeStoreValueRemove, Is.EqualTo(0)); |
367 | } | 367 | // } |
368 | } | 368 | // } |
369 | |||
370 | [Test] | ||
371 | public void TestJsonTestPathJson() | ||
372 | { | ||
373 | TestHelpers.InMethod(); | ||
374 | // TestHelpers.EnableLogging(); | ||
375 | |||
376 | UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); | ||
377 | |||
378 | { | ||
379 | int result = (int)InvokeOp("JsonTestPathJson", storeId, "Hello.World"); | ||
380 | Assert.That(result, Is.EqualTo(1)); | ||
381 | } | ||
382 | |||
383 | // Test for path which does not resolve to a value. | ||
384 | { | ||
385 | int result = (int)InvokeOp("JsonTestPathJson", storeId, "Hello"); | ||
386 | Assert.That(result, Is.EqualTo(1)); | ||
387 | } | ||
388 | |||
389 | { | ||
390 | int result2 = (int)InvokeOp("JsonTestPathJson", storeId, "foo"); | ||
391 | Assert.That(result2, Is.EqualTo(0)); | ||
392 | } | ||
393 | 369 | ||
394 | // Test with fake store | 370 | // [Test] |
395 | { | 371 | // public void TestJsonTestPathJson() |
396 | UUID fakeStoreId = TestHelpers.ParseTail(0x500); | 372 | // { |
397 | int fakeStoreValueRemove = (int)InvokeOp("JsonTestPathJson", fakeStoreId, "Hello"); | 373 | // TestHelpers.InMethod(); |
398 | Assert.That(fakeStoreValueRemove, Is.EqualTo(0)); | 374 | //// TestHelpers.EnableLogging(); |
399 | } | 375 | // |
400 | } | 376 | // UUID storeId = (UUID)InvokeOp("JsonCreateStore", "{ 'Hello' : { 'World' : 'One' } }"); |
377 | // | ||
378 | // { | ||
379 | // int result = (int)InvokeOp("JsonTestPathJson", storeId, "Hello.World"); | ||
380 | // Assert.That(result, Is.EqualTo(1)); | ||
381 | // } | ||
382 | // | ||
383 | // // Test for path which does not resolve to a value. | ||
384 | // { | ||
385 | // int result = (int)InvokeOp("JsonTestPathJson", storeId, "Hello"); | ||
386 | // Assert.That(result, Is.EqualTo(1)); | ||
387 | // } | ||
388 | // | ||
389 | // { | ||
390 | // int result2 = (int)InvokeOp("JsonTestPathJson", storeId, "foo"); | ||
391 | // Assert.That(result2, Is.EqualTo(0)); | ||
392 | // } | ||
393 | // | ||
394 | // // Test with fake store | ||
395 | // { | ||
396 | // UUID fakeStoreId = TestHelpers.ParseTail(0x500); | ||
397 | // int fakeStoreValueRemove = (int)InvokeOp("JsonTestPathJson", fakeStoreId, "Hello"); | ||
398 | // Assert.That(fakeStoreValueRemove, Is.EqualTo(0)); | ||
399 | // } | ||
400 | // } | ||
401 | 401 | ||
402 | [Test] | 402 | [Test] |
403 | public void TestGetArrayLength() | 403 | public void TestGetArrayLength() |