aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-20 17:27:45 +0000
committerJustin Clarke Casey2008-11-20 17:27:45 +0000
commit00d9c3c2cc2edad290365cc9cb39aa86868b2e63 (patch)
treee897ce4984e189c956b79aff8038583153309c0f /OpenSim/Region
parent* Add forgotton tag to existing remove scene object test (diff)
downloadopensim-SC_OLD-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.zip
opensim-SC_OLD-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.tar.gz
opensim-SC_OLD-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.tar.bz2
opensim-SC_OLD-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.tar.xz
* Add a scratch test for removing a client from a scene
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs18
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs3
2 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
index a82f9b1..fcc6c41 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
@@ -82,5 +82,23 @@ namespace OpenSim.Region.Environment.Scenes.Tests
82 Assert.That(presence, Is.Not.Null, "presence is null"); 82 Assert.That(presence, Is.Not.Null, "presence is null");
83 Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same"); 83 Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same");
84 } 84 }
85
86 /// <summary>
87 /// Test removing an uncrossed root agent from a scene.
88 /// </summary>
89 [Test]
90 public void TestRemoveRootAgent()
91 {
92 Scene scene = SceneTestUtils.SetupScene();
93 UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
94
95 SceneTestUtils.AddRootAgent(scene, agentId);
96
97 scene.RemoveClient(agentId);
98
99 ScenePresence presence = scene.GetScenePresence(agentId);
100
101 Assert.That(presence, Is.Null, "presence is not null");
102 }
85 } 103 }
86} 104}
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
index 2b2a114..1cdd32c 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
@@ -52,8 +52,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
52 52
53 AgentCircuitManager acm = new AgentCircuitManager(); 53 AgentCircuitManager acm = new AgentCircuitManager();
54 CommunicationsManager cm = new TestCommunicationsManager(); 54 CommunicationsManager cm = new TestCommunicationsManager();
55 //SceneCommunicationService scs = new SceneCommunicationService(cm); 55 SceneCommunicationService scs = new SceneCommunicationService(cm);
56 SceneCommunicationService scs = null;
57 StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", ""); 56 StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
58 BaseHttpServer httpServer = new BaseHttpServer(666); 57 BaseHttpServer httpServer = new BaseHttpServer(666);
59 IConfigSource configSource = new IniConfigSource(); 58 IConfigSource configSource = new IniConfigSource();