From 0b07c9762b4c70b6d234b70fb9e591c770dc1bf1 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 5 Jan 2009 18:00:53 +0000 Subject: * Simplify test code by always setting up mock 'in memory' user and inventory data plugins for every TestCommunicationsManager * imo the gain in simplcity of test code outweighs the very small cost of setting up some stuff that some tests will never use --- OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs | 3 --- 1 file changed, 3 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Tests') diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs index e6648e1..e347e67 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs @@ -313,9 +313,6 @@ namespace OpenSim.Region.Environment.Scenes.Tests TestScene scene = SceneTestUtils.SetupScene(); SceneObjectPart part = SceneTestUtils.AddSceneObject(scene, myObjectName); - ((LocalUserServices)scene.CommsManager.UserService).AddPlugin(new TestUserDataPlugin()); - ((LocalInventoryService)scene.CommsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin()); - Assert.That( scene.CommsManager.UserAdminService.AddUser( "Bob", "Hoskins", "test", "test@test.com", 1000, 1000, agentId), -- cgit v1.1