aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-27 19:28:04 +0000
committerJustin Clarke Casey2008-11-27 19:28:04 +0000
commit7c6c776ff783b30dfc26a065e63c267e46edc53b (patch)
tree3bd8b995d16d038e01de2d2167faee38488b0e1c /OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
parent* minor: remove the ability to change the client in ScenePresence to reduce t... (diff)
downloadopensim-SC-7c6c776ff783b30dfc26a065e63c267e46edc53b.zip
opensim-SC-7c6c776ff783b30dfc26a065e63c267e46edc53b.tar.gz
opensim-SC-7c6c776ff783b30dfc26a065e63c267e46edc53b.tar.bz2
opensim-SC-7c6c776ff783b30dfc26a065e63c267e46edc53b.tar.xz
* test: Add the ability to add a plugin directory to the user and inventory services in order to extend unit tests for user and inventory information
* I can't spend any longer in trying to get Mono.Addins to work with the unit tests, so this is not a proper plugin at this time
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 }