aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-14 23:26:50 +0000
committerJustin Clark-Casey (justincc)2011-03-14 23:26:50 +0000
commit8509678e483bc7b91721d25d822be0a21e4f7be9 (patch)
tree56d3e904f2dba6088d85bae28d9e6864f1174d77 /OpenSim
parentAdd current method output to all persistence level tests so that we can track... (diff)
downloadopensim-SC-8509678e483bc7b91721d25d822be0a21e4f7be9.zip
opensim-SC-8509678e483bc7b91721d25d822be0a21e4f7be9.tar.gz
opensim-SC-8509678e483bc7b91721d25d822be0a21e4f7be9.tar.bz2
opensim-SC-8509678e483bc7b91721d25d822be0a21e4f7be9.tar.xz
Add method doc to T015_LargeSceneObjects() and slightly clean up formatting.
This test takes a considerable time on SQLite but should remain since it's testing storage and retrieval of a scene object with 31 parts.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Data/Tests/RegionTests.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/RegionTests.cs b/OpenSim/Data/Tests/RegionTests.cs
index 2dc177a..edc9d84 100644
--- a/OpenSim/Data/Tests/RegionTests.cs
+++ b/OpenSim/Data/Tests/RegionTests.cs
@@ -533,7 +533,10 @@ namespace OpenSim.Data.Tests
533 Assert.That(clickaction,Is.EqualTo(p.ClickAction), "Assert.That(clickaction,Is.EqualTo(p.ClickAction))"); 533 Assert.That(clickaction,Is.EqualTo(p.ClickAction), "Assert.That(clickaction,Is.EqualTo(p.ClickAction))");
534 Assert.That(scale,Is.EqualTo(p.Scale), "Assert.That(scale,Is.EqualTo(p.Scale))"); 534 Assert.That(scale,Is.EqualTo(p.Scale), "Assert.That(scale,Is.EqualTo(p.Scale))");
535 } 535 }
536 536
537 /// <summary>
538 /// Test storage and retrieval of a scene object with a large number of parts.
539 /// </summary>
537 [Test] 540 [Test]
538 public void T015_LargeSceneObjects() 541 public void T015_LargeSceneObjects()
539 { 542 {
@@ -543,7 +546,7 @@ namespace OpenSim.Data.Tests
543 Dictionary<UUID, SceneObjectPart> mydic = new Dictionary<UUID, SceneObjectPart>(); 546 Dictionary<UUID, SceneObjectPart> mydic = new Dictionary<UUID, SceneObjectPart>();
544 SceneObjectGroup sog = NewSOG("Test SOG", id, region4); 547 SceneObjectGroup sog = NewSOG("Test SOG", id, region4);
545 mydic.Add(sog.RootPart.UUID,sog.RootPart); 548 mydic.Add(sog.RootPart.UUID,sog.RootPart);
546 for (int i=0;i<30;i++) 549 for (int i = 0; i < 30; i++)
547 { 550 {
548 UUID tmp = UUID.Random(); 551 UUID tmp = UUID.Random();
549 SceneObjectPart sop = NewSOP(("Test SOP " + i.ToString()),tmp); 552 SceneObjectPart sop = NewSOP(("Test SOP " + i.ToString()),tmp);
@@ -568,7 +571,7 @@ namespace OpenSim.Data.Tests
568 571
569 SceneObjectGroup retsog = FindSOG("Test SOG", region4); 572 SceneObjectGroup retsog = FindSOG("Test SOG", region4);
570 SceneObjectPart[] parts = retsog.Parts; 573 SceneObjectPart[] parts = retsog.Parts;
571 for (int i=0;i<30;i++) 574 for (int i = 0; i < 30; i++)
572 { 575 {
573 SceneObjectPart cursop = mydic[parts[i].UUID]; 576 SceneObjectPart cursop = mydic[parts[i].UUID];
574 Assert.That(cursop.GroupPosition,Is.EqualTo(parts[i].GroupPosition), "Assert.That(cursop.GroupPosition,Is.EqualTo(parts[i].GroupPosition))"); 577 Assert.That(cursop.GroupPosition,Is.EqualTo(parts[i].GroupPosition), "Assert.That(cursop.GroupPosition,Is.EqualTo(parts[i].GroupPosition))");