From 1e1b2ab221851efc414678b7ea52ef2ca788ce9f Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Sun, 10 Jan 2010 10:40:07 -0800
Subject: * OMG! All but one references to UserProfileCacheService have been
rerouted! * HG is seriously broken here * Compiles. Untested.
---
OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs | 147 +++++++++++----------
1 file changed, 75 insertions(+), 72 deletions(-)
(limited to 'OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs')
diff --git a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
index cb76bc1..b54299b 100644
--- a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
+++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
@@ -37,82 +37,85 @@ namespace OpenSim.Tests.Common.Setup
///
public static class UserProfileTestUtils
{
- ///
- /// Create a test user with a standard inventory
- ///
- ///
- ///
- /// Callback to invoke when inventory has been loaded. This is required because
- /// loading may be asynchronous, even on standalone
- ///
- ///
- public static CachedUserInfo CreateUserWithInventory(
- CommunicationsManager commsManager, OnInventoryReceivedDelegate callback)
- {
- UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000099");
- return CreateUserWithInventory(commsManager, userId, callback);
- }
+ // REFACTORING PROBLEM
+ // This needs to be rewritten
+
+ /////
+ ///// Create a test user with a standard inventory
+ /////
+ /////
+ /////
+ ///// Callback to invoke when inventory has been loaded. This is required because
+ ///// loading may be asynchronous, even on standalone
+ /////
+ /////
+ //public static CachedUserInfo CreateUserWithInventory(
+ // CommunicationsManager commsManager, OnInventoryReceivedDelegate callback)
+ //{
+ // UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000099");
+ // return CreateUserWithInventory(commsManager, userId, callback);
+ //}
- ///
- /// Create a test user with a standard inventory
- ///
- ///
- /// User ID
- ///
- /// Callback to invoke when inventory has been loaded. This is required because
- /// loading may be asynchronous, even on standalone
- ///
- ///
- public static CachedUserInfo CreateUserWithInventory(
- CommunicationsManager commsManager, UUID userId, OnInventoryReceivedDelegate callback)
- {
- return CreateUserWithInventory(commsManager, "Bill", "Bailey", userId, callback);
- }
+ /////
+ ///// Create a test user with a standard inventory
+ /////
+ /////
+ ///// User ID
+ /////
+ ///// Callback to invoke when inventory has been loaded. This is required because
+ ///// loading may be asynchronous, even on standalone
+ /////
+ /////
+ //public static CachedUserInfo CreateUserWithInventory(
+ // CommunicationsManager commsManager, UUID userId, OnInventoryReceivedDelegate callback)
+ //{
+ // return CreateUserWithInventory(commsManager, "Bill", "Bailey", userId, callback);
+ //}
- ///
- /// Create a test user with a standard inventory
- ///
- ///
- /// First name of user
- /// Last name of user
- /// User ID
- ///
- /// Callback to invoke when inventory has been loaded. This is required because
- /// loading may be asynchronous, even on standalone
- ///
- ///
- public static CachedUserInfo CreateUserWithInventory(
- CommunicationsManager commsManager, string firstName, string lastName,
- UUID userId, OnInventoryReceivedDelegate callback)
- {
- return CreateUserWithInventory(commsManager, firstName, lastName, "troll", userId, callback);
- }
+ /////
+ ///// Create a test user with a standard inventory
+ /////
+ /////
+ ///// First name of user
+ ///// Last name of user
+ ///// User ID
+ /////
+ ///// Callback to invoke when inventory has been loaded. This is required because
+ ///// loading may be asynchronous, even on standalone
+ /////
+ /////
+ //public static CachedUserInfo CreateUserWithInventory(
+ // CommunicationsManager commsManager, string firstName, string lastName,
+ // UUID userId, OnInventoryReceivedDelegate callback)
+ //{
+ // return CreateUserWithInventory(commsManager, firstName, lastName, "troll", userId, callback);
+ //}
- ///
- /// Create a test user with a standard inventory
- ///
- ///
- /// First name of user
- /// Last name of user
- /// Password
- /// User ID
- ///
- /// Callback to invoke when inventory has been loaded. This is required because
- /// loading may be asynchronous, even on standalone
- ///
- ///
- public static CachedUserInfo CreateUserWithInventory(
- CommunicationsManager commsManager, string firstName, string lastName, string password,
- UUID userId, OnInventoryReceivedDelegate callback)
- {
- LocalUserServices lus = (LocalUserServices)commsManager.UserService;
- lus.AddUser(firstName, lastName, password, "bill@bailey.com", 1000, 1000, userId);
+ /////
+ ///// Create a test user with a standard inventory
+ /////
+ /////
+ ///// First name of user
+ ///// Last name of user
+ ///// Password
+ ///// User ID
+ /////
+ ///// Callback to invoke when inventory has been loaded. This is required because
+ ///// loading may be asynchronous, even on standalone
+ /////
+ /////
+ //public static CachedUserInfo CreateUserWithInventory(
+ // CommunicationsManager commsManager, string firstName, string lastName, string password,
+ // UUID userId, OnInventoryReceivedDelegate callback)
+ //{
+ // LocalUserServices lus = (LocalUserServices)commsManager.UserService;
+ // lus.AddUser(firstName, lastName, password, "bill@bailey.com", 1000, 1000, userId);
- CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId);
- userInfo.OnInventoryReceived += callback;
- userInfo.FetchInventory();
+ // CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId);
+ // userInfo.OnInventoryReceived += callback;
+ // userInfo.FetchInventory();
- return userInfo;
- }
+ // return userInfo;
+ //}
}
}
--
cgit v1.1
From 751e70af788bf27fa0401c25d899f73186c8eafa Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Sun, 10 Jan 2010 21:37:36 -0800
Subject: NetworkServersInfo removed from CommsManager.
---
OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs | 1 -
1 file changed, 1 deletion(-)
(limited to 'OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs')
diff --git a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
index b54299b..24ad3eb 100644
--- a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
+++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
@@ -28,7 +28,6 @@
using OpenMetaverse;
using OpenSim.Framework.Communications;
using OpenSim.Framework.Communications.Cache;
-using OpenSim.Region.Communications.Local;
namespace OpenSim.Tests.Common.Setup
{
--
cgit v1.1
From c5ea783526611a968400a1936e4c6764ee1c7013 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Mon, 11 Jan 2010 07:51:33 -0800
Subject: OpenSim/Framework/Communications/Cache deleted. LibraryRootFolder
deleted.
---
OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs')
diff --git a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
index 24ad3eb..cd61fa6 100644
--- a/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
+++ b/OpenSim/Tests/Common/Setup/UserProfileTestUtils.cs
@@ -27,7 +27,7 @@
using OpenMetaverse;
using OpenSim.Framework.Communications;
-using OpenSim.Framework.Communications.Cache;
+
namespace OpenSim.Tests.Common.Setup
{
--
cgit v1.1