aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-23 22:12:20 +0000
committerJustin Clark-Casey (justincc)2011-03-23 22:12:20 +0000
commit654aa7abeb497e024c87e2ef8d610ba3ca512c3e (patch)
tree92797f71ad3cc2035501946312b057c9d4230f75 /OpenSim/Region
parentAdd method doc to the Get*() methods on PrimCountModule (diff)
downloadopensim-SC_OLD-654aa7abeb497e024c87e2ef8d610ba3ca512c3e.zip
opensim-SC_OLD-654aa7abeb497e024c87e2ef8d610ba3ca512c3e.tar.gz
opensim-SC_OLD-654aa7abeb497e024c87e2ef8d610ba3ca512c3e.tar.bz2
opensim-SC_OLD-654aa7abeb497e024c87e2ef8d610ba3ca512c3e.tar.xz
Extend simple PCM add object test to check all counts
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
index fd332ed..88c814e 100644
--- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
+++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
@@ -55,6 +55,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
55 Scene scene = SceneSetupHelpers.SetupScene(); 55 Scene scene = SceneSetupHelpers.SetupScene();
56 SceneSetupHelpers.SetupSceneModules(scene, lmm, pcm); 56 SceneSetupHelpers.SetupSceneModules(scene, lmm, pcm);
57 57
58 UUID dummyUserId = new UUID("99999999-9999-9999-9999-999999999999");
58 ILandObject lo = new LandObject(UUID.Zero, false, scene); 59 ILandObject lo = new LandObject(UUID.Zero, false, scene);
59 lo.SetLandBitmap(lo.GetSquareLandBitmap(0, 0, (int)Constants.RegionSize, (int)Constants.RegionSize)); 60 lo.SetLandBitmap(lo.GetSquareLandBitmap(0, 0, (int)Constants.RegionSize, (int)Constants.RegionSize));
60 lmm.AddLandObject(lo); 61 lmm.AddLandObject(lo);
@@ -68,10 +69,20 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
68 { Name = objName, UUID = objUuid }; 69 { Name = objName, UUID = objUuid };
69 70
70 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0)); 71 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0));
72 Assert.That(pcm.GetGroupCount(lo.LandData.GlobalID), Is.EqualTo(0));
73 Assert.That(pcm.GetOthersCount(lo.LandData.GlobalID), Is.EqualTo(0));
74 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, UUID.Zero), Is.EqualTo(0));
75 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, dummyUserId), Is.EqualTo(0));
76 Assert.That(pcm.GetSimulatorCount(lo.LandData.GlobalID), Is.EqualTo(0));
71 77
72 scene.AddNewSceneObject(new SceneObjectGroup(part), false); 78 scene.AddNewSceneObject(new SceneObjectGroup(part), false);
73 79
74 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(1)); 80 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(1));
81 Assert.That(pcm.GetGroupCount(lo.LandData.GlobalID), Is.EqualTo(0));
82 Assert.That(pcm.GetOthersCount(lo.LandData.GlobalID), Is.EqualTo(0));
83 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, UUID.Zero), Is.EqualTo(1));
84 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, dummyUserId), Is.EqualTo(0));
85 Assert.That(pcm.GetSimulatorCount(lo.LandData.GlobalID), Is.EqualTo(1));
75 } 86 }
76 } 87 }
77} \ No newline at end of file 88} \ No newline at end of file