aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-04-21 16:21:15 +0000
committerJustin Clarke Casey2009-04-21 16:21:15 +0000
commit48720ea7a227a0eebecff365deb295fc08207c6c (patch)
treee7c92af1e76f26b5a538114872dcf71feb0b46ff
parentculling AsteriskVoiceModule and SIPVoiceModule, now that we have (diff)
downloadopensim-SC_OLD-48720ea7a227a0eebecff365deb295fc08207c6c.zip
opensim-SC_OLD-48720ea7a227a0eebecff365deb295fc08207c6c.tar.gz
opensim-SC_OLD-48720ea7a227a0eebecff365deb295fc08207c6c.tar.bz2
opensim-SC_OLD-48720ea7a227a0eebecff365deb295fc08207c6c.tar.xz
* extend user cache update test to check data backend
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index 68303b0..c7f3bfc 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -86,9 +86,11 @@ namespace OpenSim.Framework.Communications.Tests
86 86
87 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 87 TestCommunicationsManager commsManager = new TestCommunicationsManager();
88 UserProfileCacheService userCacheService = commsManager.UserProfileCacheService; 88 UserProfileCacheService userCacheService = commsManager.UserProfileCacheService;
89 IUserDataPlugin userDataPlugin = commsManager.UserDataPlugin;
89 90
90 // Check that we can't update info before it exists 91 // Check that we can't update info before it exists
91 Assert.That(userCacheService.UpdateProfile(newProfile), Is.False); 92 Assert.That(userCacheService.UpdateProfile(newProfile), Is.False);
93 Assert.That(userDataPlugin.GetUserByUUID(userId), Is.Null);
92 94
93 // Check that we can update a profile once it exists 95 // Check that we can update a profile once it exists
94 LocalUserServices lus = (LocalUserServices)commsManager.UserService; 96 LocalUserServices lus = (LocalUserServices)commsManager.UserService;
@@ -97,6 +99,7 @@ namespace OpenSim.Framework.Communications.Tests
97 Assert.That(userCacheService.UpdateProfile(newProfile), Is.True); 99 Assert.That(userCacheService.UpdateProfile(newProfile), Is.True);
98 UserProfileData retrievedProfile = userCacheService.GetUserDetails(userId).UserProfile; 100 UserProfileData retrievedProfile = userCacheService.GetUserDetails(userId).UserProfile;
99 Assert.That(retrievedProfile.SurName, Is.EqualTo(newLastName)); 101 Assert.That(retrievedProfile.SurName, Is.EqualTo(newLastName));
102 Assert.That(userDataPlugin.GetUserByUUID(userId).SurName, Is.EqualTo(newLastName));
100 } 103 }
101 104
102 [Test] 105 [Test]