aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs23
1 files changed, 22 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index e496e45..6fd9440 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -61,6 +61,27 @@ namespace OpenSim.Framework.Communications.Tests
61 lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, existingUserId); 61 lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, existingUserId);
62 CachedUserInfo existingUserInfo = commsManager.UserProfileCacheService.GetUserDetails(existingUserId); 62 CachedUserInfo existingUserInfo = commsManager.UserProfileCacheService.GetUserDetails(existingUserId);
63 Assert.That(existingUserInfo, Is.Not.Null, "Existing user info unexpectedly not found"); 63 Assert.That(existingUserInfo, Is.Not.Null, "Existing user info unexpectedly not found");
64 } 64 }
65
66 /// <summary>
67 /// Test moving a folder
68 /// </summary>
69 [Test]
70 public void TestRequestInventoryForUser()
71 {
72 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000003");
73
74 CommunicationsManager commsManager = new TestCommunicationsManager();
75 LocalUserServices lus = (LocalUserServices)commsManager.UserService;
76 lus.AddPlugin(new TestUserDataPlugin());
77 ((LocalInventoryService)commsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin());
78
79 lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, userId);
80
81 commsManager.UserProfileCacheService.RequestInventoryForUser(userId);
82
83 CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId);
84 Assert.That(userInfo.HasReceivedInventory, Is.True);
85 }
65 } 86 }
66} 87}