From 8fe70c826d06a949cde32ac7ff06022b0696a29f Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 24 Apr 2009 19:19:19 +0000 Subject: [PATCH] * minor: move user profile test utils to test/common/setup for future reuse --- .../Tests/Cache/UserProfileCacheServiceTests.cs | 1 + .../Archiver/Tests/InventoryArchiverTests.cs | 14 ++++++++++++++ .../Common/Setup}/UserProfileTestUtils.cs | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) rename OpenSim/{Framework/Communications/Tests/Cache => Tests/Common/Setup}/UserProfileTestUtils.cs (97%) diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs index 1711187f2c..2972a0a360 100644 --- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs +++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs @@ -33,6 +33,7 @@ using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; using OpenSim.Region.Communications.Local; using OpenSim.Tests.Common.Mock; +using OpenSim.Tests.Common.Setup; namespace OpenSim.Framework.Communications.Tests { diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs index 5388403ef8..1d4256b642 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs @@ -42,6 +42,7 @@ using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver; using OpenSim.Region.CoreModules.World.Serialiser; using OpenSim.Region.Framework.Scenes; using OpenSim.Tests.Common; +using OpenSim.Tests.Common.Mock; using OpenSim.Tests.Common.Setup; namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests @@ -242,5 +243,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests Console.WriteLine("Finished TestLoadIarV0p1()"); } + + /* + /// + /// Test replication of an archive path to the user's inventory. + /// + [Test] + public void TestReplicateArchivePathToUserInventory() + { + CommunicationsManager commsManager = new TestCommunicationsManager(); + CachedUserInfo userInfo = new CachedUserInfo(); + new InventoryArchiveReadRequest(userInfo, "/", null, commsManager); + } + */ } } diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs similarity index 97% rename from OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs rename to OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs index d0f92d63fe..90bd6c1575 100644 --- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileTestUtils.cs +++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs @@ -26,10 +26,11 @@ */ using OpenMetaverse; +using OpenSim.Framework.Communications; using OpenSim.Framework.Communications.Cache; using OpenSim.Region.Communications.Local; -namespace OpenSim.Framework.Communications.Tests +namespace OpenSim.Tests.Common.Setup { /// /// Utility functions for carrying out user profile related tests.