diff options
author | Justin Clarke Casey | 2008-12-11 18:56:04 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-12-11 18:56:04 +0000 |
commit | 04a07daa5b4a19d61d70d63e32818ac65a322167 (patch) | |
tree | 45b8505abc15f32eb6931e86c53cf86aeee6e7b6 /OpenSim/Framework/Communications/Tests/Cache | |
parent | * Delete currently unrun TestInventory.cs superseded by BasicInventoryTests (diff) | |
download | opensim-SC_OLD-04a07daa5b4a19d61d70d63e32818ac65a322167.zip opensim-SC_OLD-04a07daa5b4a19d61d70d63e32818ac65a322167.tar.gz opensim-SC_OLD-04a07daa5b4a19d61d70d63e32818ac65a322167.tar.bz2 opensim-SC_OLD-04a07daa5b4a19d61d70d63e32818ac65a322167.tar.xz |
minor: Add request inventory test
Diffstat (limited to 'OpenSim/Framework/Communications/Tests/Cache')
-rw-r--r-- | OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs | 23 |
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 | } |