minor: Add request inventory test

0.6.1-post-fixes
Justin Clarke Casey 2008-12-11 18:56:04 +00:00
parent 0e870400ca
commit 04a07daa5b
2 changed files with 22 additions and 3 deletions

View File

@ -61,6 +61,27 @@ namespace OpenSim.Framework.Communications.Tests
lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, existingUserId);
CachedUserInfo existingUserInfo = commsManager.UserProfileCacheService.GetUserDetails(existingUserId);
Assert.That(existingUserInfo, Is.Not.Null, "Existing user info unexpectedly not found");
}
}
/// <summary>
/// Test moving a folder
/// </summary>
[Test]
public void TestRequestInventoryForUser()
{
UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000003");
CommunicationsManager commsManager = new TestCommunicationsManager();
LocalUserServices lus = (LocalUserServices)commsManager.UserService;
lus.AddPlugin(new TestUserDataPlugin());
((LocalInventoryService)commsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin());
lus.AddUser("Bill", "Bailey", "troll", "bill@bailey.com", 1000, 1000, userId);
commsManager.UserProfileCacheService.RequestInventoryForUser(userId);
CachedUserInfo userInfo = commsManager.UserProfileCacheService.GetUserDetails(userId);
Assert.That(userInfo.HasReceivedInventory, Is.True);
}
}
}

View File

@ -28,7 +28,6 @@
using OpenMetaverse;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using OpenSim.Tests.Common;
namespace OpenSim.Framework.Tests
{
@ -38,7 +37,6 @@ namespace OpenSim.Framework.Tests
[Test]
public void locationRegionHandleRegionHandle()
{
//1099511628032000
// 256000
// 256000