diff options
author | Justin Clark-Casey (justincc) | 2012-03-29 18:31:57 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-29 18:31:57 +0100 |
commit | bf09d6a22be5f8e7a2584eaa11ccbc1c61cc6753 (patch) | |
tree | 3f5c8a55d95c539fc8a4887465a1c601b32a0b44 /OpenSim/Region/CoreModules/Avatar/Friends/Tests | |
parent | Add simple regression test for logging in with offline friends. Don't expect... (diff) | |
download | opensim-SC_OLD-bf09d6a22be5f8e7a2584eaa11ccbc1c61cc6753.zip opensim-SC_OLD-bf09d6a22be5f8e7a2584eaa11ccbc1c61cc6753.tar.gz opensim-SC_OLD-bf09d6a22be5f8e7a2584eaa11ccbc1c61cc6753.tar.bz2 opensim-SC_OLD-bf09d6a22be5f8e7a2584eaa11ccbc1c61cc6753.tar.xz |
refactor: Stop passing both IClientAPI and agentID to friend event listeners, these are redundant. Replace a few magic numbers with FriendRights enum already used elsewhere.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs index 34c68cc..94a78cb 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs | |||
@@ -120,6 +120,34 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends.Tests | |||
120 | Assert.That(((TestClient)sp1Redux.ControllingClient).ReceivedOnlineNotifications.Count, Is.EqualTo(0)); | 120 | Assert.That(((TestClient)sp1Redux.ControllingClient).ReceivedOnlineNotifications.Count, Is.EqualTo(0)); |
121 | } | 121 | } |
122 | 122 | ||
123 | // [Test] | ||
124 | // public void TestLoginWithOnlineFriends() | ||
125 | // { | ||
126 | // TestHelpers.InMethod(); | ||
127 | // log4net.Config.XmlConfigurator.Configure(); | ||
128 | // | ||
129 | // UUID user1Id = TestHelpers.ParseTail(0x1); | ||
130 | // UUID user2Id = TestHelpers.ParseTail(0x2); | ||
131 | // | ||
132 | //// UserAccountHelpers.CreateUserWithInventory(m_scene, user1Id); | ||
133 | //// UserAccountHelpers.CreateUserWithInventory(m_scene, user2Id); | ||
134 | //// | ||
135 | //// m_fm.AddFriendship(user1Id, user2Id); | ||
136 | // | ||
137 | // ScenePresence sp1 = SceneHelpers.AddScenePresence(m_scene, user1Id); | ||
138 | // SceneHelpers.AddScenePresence(m_scene, user2Id); | ||
139 | // | ||
140 | // m_fm.AddFriendship(sp1.ControllingClient, user2Id); | ||
141 | //// m_fm.LocalGrantRights | ||
142 | // | ||
143 | // m_scene.RemoveClient(sp1.UUID, true); | ||
144 | // | ||
145 | // ScenePresence sp1Redux = SceneHelpers.AddScenePresence(m_scene, user1Id); | ||
146 | // | ||
147 | // Assert.That(((TestClient)sp1Redux.ControllingClient).ReceivedOfflineNotifications.Count, Is.EqualTo(0)); | ||
148 | // Assert.That(((TestClient)sp1Redux.ControllingClient).ReceivedOnlineNotifications.Count, Is.EqualTo(1)); | ||
149 | // } | ||
150 | |||
123 | [Test] | 151 | [Test] |
124 | public void TestAddFriendshipWhileOnline() | 152 | public void TestAddFriendshipWhileOnline() |
125 | { | 153 | { |