diff options
author | Justin Clarke Casey | 2008-11-20 16:58:40 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-20 16:58:40 +0000 |
commit | 81dcf223bf2c564423d2c5c101ea95b6d79c6eab (patch) | |
tree | d631c67957b5ab2d3112ec22c1f14636b0b5d96f /OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | |
parent | From: Christopher Yeoh <cyeoh@au1.ibm.com> (diff) | |
download | opensim-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.cs | 7 |
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; | |||
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenSim.Framework.Communications; | 31 | using OpenSim.Framework.Communications; |
32 | using OpenSim.Framework.Servers; | 32 | using OpenSim.Framework.Servers; |
33 | using OpenSim.Region.Physics.Manager; | ||
33 | using OpenSim.Region.Environment.Scenes; | 34 | using OpenSim.Region.Environment.Scenes; |
34 | 35 | ||
35 | namespace OpenSim.Region.Environment.Scenes.Tests | 36 | namespace 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 | ||