aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
index a24161e..216dce5 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
@@ -31,6 +31,8 @@ using NUnit.Framework.SyntaxHelpers;
31using OpenMetaverse; 31using OpenMetaverse;
32using OpenSim.Framework; 32using OpenSim.Framework;
33using OpenSim.Framework.Communications; 33using OpenSim.Framework.Communications;
34using OpenSim.Framework.Communications.Cache;
35using OpenSim.Region.Communications.Local;
34using OpenSim.Region.Environment.Scenes; 36using OpenSim.Region.Environment.Scenes;
35 37
36namespace OpenSim.Region.Environment.Scenes.Tests 38namespace OpenSim.Region.Environment.Scenes.Tests
@@ -57,7 +59,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
57 /// <summary> 59 /// <summary>
58 /// Test adding an object to a scene. 60 /// Test adding an object to a scene.
59 /// </summary> 61 /// </summary>
60 [Test] 62 [Test]
61 public void TestAddSceneObject() 63 public void TestAddSceneObject()
62 { 64 {
63 Scene scene = SceneTestUtils.SetupScene(); 65 Scene scene = SceneTestUtils.SetupScene();
@@ -99,6 +101,11 @@ namespace OpenSim.Region.Environment.Scenes.Tests
99 101
100 SceneObjectPart part = SceneTestUtils.AddSceneObject(scene); 102 SceneObjectPart part = SceneTestUtils.AddSceneObject(scene);
101 103
104 ((LocalUserServices)scene.CommsManager.UserService).AddPlugin(new TestUserDataPlugin());
105// Assert.That(
106// scene.CommsManager.AddUser("Bob", "Hoskins", "test", "test@test.com", 1000, 1000, agentId),
107// Is.EqualTo(agentId));
108
102 IClientAPI client = SceneTestUtils.AddRootAgent(scene, agentId); 109 IClientAPI client = SceneTestUtils.AddRootAgent(scene, agentId);
103 scene.DeRezObject(client, part.LocalId, UUID.Zero, 9, UUID.Zero); 110 scene.DeRezObject(client, part.LocalId, UUID.Zero, 9, UUID.Zero);
104 111
@@ -107,7 +114,10 @@ namespace OpenSim.Region.Environment.Scenes.Tests
107 114
108 sogd.InventoryDeQueueAndDelete(); 115 sogd.InventoryDeQueueAndDelete();
109 SceneObjectPart retrievedPart2 = scene.GetSceneObjectPart(part.LocalId); 116 SceneObjectPart retrievedPart2 = scene.GetSceneObjectPart(part.LocalId);
110 Assert.That(retrievedPart2, Is.Null); 117 Assert.That(retrievedPart2, Is.Null);
118
119// CachedUserInfo userInfo = scene.CommsManager.UserProfileCacheService.GetUserDetails(agentId);
120// Assert.That(userInfo, Is.Not.Null);
111 121
112 // TODO: test that the object actually made it successfully into inventory 122 // TODO: test that the object actually made it successfully into inventory
113 } 123 }