aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-20 16:58:40 +0000
committerJustin Clarke Casey2008-11-20 16:58:40 +0000
commit81dcf223bf2c564423d2c5c101ea95b6d79c6eab (patch)
treed631c67957b5ab2d3112ec22c1f14636b0b5d96f /OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
parentFrom: Christopher Yeoh <cyeoh@au1.ibm.com> (diff)
downloadopensim-SC-81dcf223bf2c564423d2c5c101ea95b6d79c6eab.zip
opensim-SC-81dcf223bf2c564423d2c5c101ea95b6d79c6eab.tar.gz
opensim-SC-81dcf223bf2c564423d2c5c101ea95b6d79c6eab.tar.bz2
opensim-SC-81dcf223bf2c564423d2c5c101ea95b6d79c6eab.tar.xz
* Add enough infrastructure code to run an extremely basic and flaky add root agent scene test
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
index 26c148f..15053f1 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
@@ -30,6 +30,7 @@ using OpenMetaverse;
30using OpenSim.Framework; 30using OpenSim.Framework;
31using OpenSim.Framework.Communications; 31using OpenSim.Framework.Communications;
32using OpenSim.Framework.Servers; 32using OpenSim.Framework.Servers;
33using OpenSim.Region.Physics.Manager;
33using OpenSim.Region.Environment.Scenes; 34using OpenSim.Region.Environment.Scenes;
34 35
35namespace OpenSim.Region.Environment.Scenes.Tests 36namespace OpenSim.Region.Environment.Scenes.Tests
@@ -50,7 +51,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
50 regInfo.ExternalHostName = "1.2.3.4"; 51 regInfo.ExternalHostName = "1.2.3.4";
51 52
52 AgentCircuitManager acm = new AgentCircuitManager(); 53 AgentCircuitManager acm = new AgentCircuitManager();
53 CommunicationsManager cm = new CommunicationsManager(null, null, null, false, null); 54 CommunicationsManager cm = new TestCommunicationsManager();
54 //SceneCommunicationService scs = new SceneCommunicationService(cm); 55 //SceneCommunicationService scs = new SceneCommunicationService(cm);
55 SceneCommunicationService scs = null; 56 SceneCommunicationService scs = null;
56 StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", ""); 57 StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
@@ -62,6 +63,10 @@ namespace OpenSim.Region.Environment.Scenes.Tests
62 63
63 testScene.LandChannel = new TestLandChannel(); 64 testScene.LandChannel = new TestLandChannel();
64 65
66 PhysicsPluginManager physicsPluginManager = new PhysicsPluginManager();
67 physicsPluginManager.LoadPlugins();
68 testScene.PhysicsScene = physicsPluginManager.GetPhysicsScene("basicphysics", "ZeroMesher", configSource);
69
65 return testScene; 70 return testScene;
66 } 71 }
67 72