aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs23
-rw-r--r--OpenSim/Framework/Tests/LocationTest.cs2
2 files changed, 22 insertions, 3 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}
diff --git a/OpenSim/Framework/Tests/LocationTest.cs b/OpenSim/Framework/Tests/LocationTest.cs
index 118ec94..5617e2b 100644
--- a/OpenSim/Framework/Tests/LocationTest.cs
+++ b/OpenSim/Framework/Tests/LocationTest.cs
@@ -28,7 +28,6 @@
28using OpenMetaverse; 28using OpenMetaverse;
29using NUnit.Framework; 29using NUnit.Framework;
30using NUnit.Framework.SyntaxHelpers; 30using NUnit.Framework.SyntaxHelpers;
31using OpenSim.Tests.Common;
32 31
33namespace OpenSim.Framework.Tests 32namespace OpenSim.Framework.Tests
34{ 33{
@@ -38,7 +37,6 @@ namespace OpenSim.Framework.Tests
38 [Test] 37 [Test]
39 public void locationRegionHandleRegionHandle() 38 public void locationRegionHandleRegionHandle()
40 { 39 {
41
42 //1099511628032000 40 //1099511628032000
43 // 256000 41 // 256000
44 // 256000 42 // 256000