aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index 03f4586..62a42a9 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -48,13 +48,19 @@ namespace OpenSim.Framework.Communications.Tests
48 public void TestGetUserDetails() 48 public void TestGetUserDetails()
49 { 49 {
50 UUID nonExistingUserId = UUID.Parse("00000000-0000-0000-0000-000000000001"); 50 UUID nonExistingUserId = UUID.Parse("00000000-0000-0000-0000-000000000001");
51 UUID existingUserId = UUID.Parse("00000000-0000-0000-0000-000000000002");
51 52
52 CommunicationsManager commsManager = new TestCommunicationsManager(); 53 CommunicationsManager commsManager = new TestCommunicationsManager();
53 ((LocalUserServices)commsManager.UserService).AddPlugin(new TestUserDataPlugin()); 54 LocalUserServices lus = (LocalUserServices)commsManager.UserService;
55 lus.AddPlugin(new TestUserDataPlugin());
54 ((LocalInventoryService)commsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin()); 56 ((LocalInventoryService)commsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin());
55 57
56 CachedUserInfo nonExistingUserInfo = commsManager.UserProfileCacheService.GetUserDetails(nonExistingUserId); 58 CachedUserInfo nonExistingUserInfo = commsManager.UserProfileCacheService.GetUserDetails(nonExistingUserId);
57 Assert.That(nonExistingUserInfo, Is.Null, "Non existing user info unexpectedly exists!"); 59 Assert.That(nonExistingUserInfo, Is.Null, "Non existing user info unexpectedly found");
60
61 lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, existingUserId);
62 CachedUserInfo existingUserInfo = commsManager.UserProfileCacheService.GetUserDetails(existingUserId);
63 Assert.That(existingUserInfo, Is.Not.Null, "Existing user info unexpectedly not found");
58 } 64 }
59 } 65 }
60} 66}