diff options
author | Justin Clarke Casey | 2008-11-10 18:10:00 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-10 18:10:00 +0000 |
commit | 5d1d5a22a9590cf8a3475a0bf13a4613b6273bf4 (patch) | |
tree | 8bf214cd45c9a94aae3d6ef8d76169f19006ae41 /OpenSim/Region/Environment/Scenes/Tests | |
parent | this changeset adds an option to RemoteAdmin to limit the number of (diff) | |
download | opensim-SC-5d1d5a22a9590cf8a3475a0bf13a4613b6273bf4.zip opensim-SC-5d1d5a22a9590cf8a3475a0bf13a4613b6273bf4.tar.gz opensim-SC-5d1d5a22a9590cf8a3475a0bf13a4613b6273bf4.tar.bz2 opensim-SC-5d1d5a22a9590cf8a3475a0bf13a4613b6273bf4.tar.xz |
* Extend basic scene test to retrieve the object from the scene and match uuids
* Decouple sog and sop by removing the need to pass the sog to the sop when it is created - most of the code was doing this operation (and hence duplicating it) anyway
* Remove unused constructors
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs index 9d48802..4a038e2 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTests.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using Nini.Config; | 29 | using Nini.Config; |
30 | using NUnit.Framework; | 30 | using NUnit.Framework; |
31 | using NUnit.Framework.SyntaxHelpers; | ||
31 | using OpenMetaverse; | 32 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Communications; | 34 | using OpenSim.Framework.Communications; |
@@ -74,9 +75,21 @@ namespace OpenSim.Region.Environment.Scenes.Tests | |||
74 | = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null); | 75 | = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null); |
75 | 76 | ||
76 | SceneObjectGroup sceneObject = new SceneObjectGroup(); | 77 | SceneObjectGroup sceneObject = new SceneObjectGroup(); |
77 | new SceneObjectPart(sceneObject, UUID.Zero, null, Vector3.Zero, Quaternion.Identity, Vector3.Zero); | 78 | SceneObjectPart part |
79 | = new SceneObjectPart(UUID.Zero, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero); | ||
80 | //part.UpdatePrimFlags(false, false, true); | ||
81 | part.ObjectFlags |= (uint)PrimFlags.Phantom; | ||
82 | |||
83 | sceneObject.RootPart = part; | ||
84 | sceneObject.AddPart(part); | ||
78 | 85 | ||
79 | scene.AddNewSceneObject(sceneObject, false); | 86 | scene.AddNewSceneObject(sceneObject, false); |
87 | |||
88 | SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId); | ||
89 | |||
90 | //System.Console.WriteLine("retrievedPart : {0}", retrievedPart); | ||
91 | // If the parts have the same UUID then we will consider them as one and the same | ||
92 | Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID)); | ||
80 | } | 93 | } |
81 | } | 94 | } |
82 | } \ No newline at end of file | 95 | } \ No newline at end of file |