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.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
index 500512e..ba231ca 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs
@@ -105,17 +105,18 @@ namespace OpenSim.Region.Environment.Scenes.Tests
105 } 105 }
106 106
107 /// <summary> 107 /// <summary>
108 /// Test deleting an object asynchronously to user inventory. Doesn't yet do what it says on the tin. 108 /// Test deleting an object asynchronously to user inventory.
109 /// </summary> 109 /// </summary>
110 [Test] 110 [Test]
111 public void TestDeleteSceneObjectAsyncToUserInventory() 111 public void TestDeleteSceneObjectAsyncToUserInventory()
112 { 112 {
113 log4net.Config.XmlConfigurator.Configure(); 113 //log4net.Config.XmlConfigurator.Configure();
114 114
115 UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001"); 115 UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
116 string myObjectName = "Fred";
116 117
117 TestScene scene = SceneTestUtils.SetupScene(); 118 TestScene scene = SceneTestUtils.SetupScene();
118 SceneObjectPart part = SceneTestUtils.AddSceneObject(scene); 119 SceneObjectPart part = SceneTestUtils.AddSceneObject(scene, myObjectName);
119 120
120 ((LocalUserServices)scene.CommsManager.UserService).AddPlugin(new TestUserDataPlugin()); 121 ((LocalUserServices)scene.CommsManager.UserService).AddPlugin(new TestUserDataPlugin());
121 ((LocalInventoryService)scene.CommsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin()); 122 ((LocalInventoryService)scene.CommsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin());
@@ -131,11 +132,16 @@ namespace OpenSim.Region.Environment.Scenes.Tests
131 Assert.That(userInfo, Is.Not.Null); 132 Assert.That(userInfo, Is.Not.Null);
132 Assert.That(userInfo.RootFolder, Is.Not.Null); 133 Assert.That(userInfo.RootFolder, Is.Not.Null);
133 134
134 SceneTestUtils.DeleteSceneObjectAsync(scene, part, DeRezAction.TakeCopy, userInfo.RootFolder.ID, client); 135 SceneTestUtils.DeleteSceneObjectAsync(scene, part, DeRezAction.Take, userInfo.RootFolder.ID, client);
136
137 // Check that we now have the taken part in our inventory
138 Assert.That(myObjectName, Is.EqualTo(userInfo.RootFolder.FindItemByPath(myObjectName).Name));
135 139
136 // TODO: test that the object actually made it successfully into inventory 140 // Check that the taken part has actually disappeared
141 SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
142 Assert.That(retrievedPart, Is.Null);
137 143
138 log4net.LogManager.Shutdown(); 144 //log4net.LogManager.Shutdown();
139 } 145 }
140 } 146 }
141} \ No newline at end of file 147} \ No newline at end of file