aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2011-10-25 03:26:34 +0100
committerMelanie2011-10-25 03:26:34 +0100
commita055dd39ac24d9370fb41813ac7294bfb116cd68 (patch)
tree5a77b295012cf379e54d649fd2338de18149ae6f /OpenSim/Region
parentMerge commit '48295793b0d07579d9e31744ae6969df647f663c' into bigmerge (diff)
parentseparate out future common setup code from EventQueueTests.AddForClient() (diff)
downloadopensim-SC-a055dd39ac24d9370fb41813ac7294bfb116cd68.zip
opensim-SC-a055dd39ac24d9370fb41813ac7294bfb116cd68.tar.gz
opensim-SC-a055dd39ac24d9370fb41813ac7294bfb116cd68.tar.bz2
opensim-SC-a055dd39ac24d9370fb41813ac7294bfb116cd68.tar.xz
Merge commit '79d5bc9beb445ca07cff9ecbd91d89b2a57e14da' into bigmerge
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs22
1 files changed, 14 insertions, 8 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs
index 74d91d4..ec8a414 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/Tests/EventQueueTests.cs
@@ -45,12 +45,11 @@ namespace OpenSim.Region.ClientStack.Linden.Tests
45 [TestFixture] 45 [TestFixture]
46 public class EventQueueTests 46 public class EventQueueTests
47 { 47 {
48 [Test] 48 private TestScene m_scene;
49 public void AddForClient()
50 {
51 TestHelpers.InMethod();
52 log4net.Config.XmlConfigurator.Configure();
53 49
50 [SetUp]
51 public void SetUp()
52 {
54 MainServer.Instance = new BaseHttpServer(9999, false, 9998, ""); 53 MainServer.Instance = new BaseHttpServer(9999, false, 9998, "");
55 54
56 IConfigSource config = new IniConfigSource(); 55 IConfigSource config = new IniConfigSource();
@@ -60,10 +59,17 @@ namespace OpenSim.Region.ClientStack.Linden.Tests
60 CapabilitiesModule capsModule = new CapabilitiesModule(); 59 CapabilitiesModule capsModule = new CapabilitiesModule();
61 EventQueueGetModule eqgModule = new EventQueueGetModule(); 60 EventQueueGetModule eqgModule = new EventQueueGetModule();
62 61
63 TestScene scene = SceneHelpers.SetupScene(); 62 m_scene = SceneHelpers.SetupScene();
64 SceneHelpers.SetupSceneModules(scene, config, capsModule, eqgModule); 63 SceneHelpers.SetupSceneModules(m_scene, config, capsModule, eqgModule);
64 }
65
66 [Test]
67 public void AddForClient()
68 {
69 TestHelpers.InMethod();
70// log4net.Config.XmlConfigurator.Configure();
65 71
66 SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1)); 72 SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1));
67 73
68 // TODO: Add more assertions for the other aspects of event queues 74 // TODO: Add more assertions for the other aspects of event queues
69 Assert.That(MainServer.Instance.GetPollServiceHandlerKeys().Count, Is.EqualTo(1)); 75 Assert.That(MainServer.Instance.GetPollServiceHandlerKeys().Count, Is.EqualTo(1));