aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-11 17:30:57 +0000
committerJustin Clarke Casey2008-12-11 17:30:57 +0000
commit230eb06d34a36a61b7ca14bb0abb6274f3bc3b03 (patch)
tree7edeb27e3d0214d0631f609e8f079aec9ee2342b /OpenSim/Framework/Communications
parent* test: Add simple user profile test that checks for non-existing users (diff)
downloadopensim-SC_OLD-230eb06d34a36a61b7ca14bb0abb6274f3bc3b03.zip
opensim-SC_OLD-230eb06d34a36a61b7ca14bb0abb6274f3bc3b03.tar.gz
opensim-SC_OLD-230eb06d34a36a61b7ca14bb0abb6274f3bc3b03.tar.bz2
opensim-SC_OLD-230eb06d34a36a61b7ca14bb0abb6274f3bc3b03.tar.xz
* Extend test to probe for user details that should exist
Diffstat (limited to 'OpenSim/Framework/Communications')
-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}