From 95a5bfc56018b7d2ed57c071a46ff60a15451838 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 14 Nov 2008 20:09:12 +0000
Subject: * refactor: Have the entity list tests use the infrastructure method
 rather than cut n paste

---
 .../Region/Environment/Scenes/Tests/EntityListTests.cs  | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs b/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs
index 65f0dcb..7628a88 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs
@@ -55,25 +55,12 @@ namespace OpenSim.Region.Environment.Scenes.Tests
             catch
             {
                 // I don't care, just leave log4net off
-            }
-            
-            RegionInfo regInfo = new RegionInfo(1000, 1000, null, null);
-            regInfo.RegionName = "Unit test region";
-            AgentCircuitManager acm = new AgentCircuitManager();
-            //CommunicationsManager cm = new CommunicationsManager(null, null, null, false, null);
-            CommunicationsManager cm = null;
-            //SceneCommunicationService scs = new SceneCommunicationService(cm);
-            SceneCommunicationService scs = null;
-            StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
-            IConfigSource configSource = new IniConfigSource();
-            
-            scene 
-                = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);            
+            }          
         }
         
         static public Random random;
         SceneObjectGroup found;
-        Scene scene;
+        Scene scene = SceneTestUtils.SetupScene();
 
         [Test]
         public void T010_AddObjects()
-- 
cgit v1.1