aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Setup
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
index 8527886..5eb8e0f 100644
--- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
+++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs
@@ -40,6 +40,8 @@ using OpenSim.Region.Framework.Interfaces;
40using OpenSim.Region.Framework.Scenes; 40using OpenSim.Region.Framework.Scenes;
41using OpenSim.Region.CoreModules.Agent.Capabilities; 41using OpenSim.Region.CoreModules.Agent.Capabilities;
42using OpenSim.Region.CoreModules.Avatar.Gods; 42using OpenSim.Region.CoreModules.Avatar.Gods;
43using OpenSim.Region.CoreModules.ServiceConnectors.Asset;
44using OpenSim.Services.Interfaces;
43using OpenSim.Tests.Common.Mock; 45using OpenSim.Tests.Common.Mock;
44 46
45namespace OpenSim.Tests.Common.Setup 47namespace OpenSim.Tests.Common.Setup
@@ -122,6 +124,18 @@ namespace OpenSim.Tests.Common.Setup
122 IRegionModule godsModule = new GodsModule(); 124 IRegionModule godsModule = new GodsModule();
123 godsModule.Initialise(testScene, new IniConfigSource()); 125 godsModule.Initialise(testScene, new IniConfigSource());
124 testScene.AddModule(godsModule.Name, godsModule); 126 testScene.AddModule(godsModule.Name, godsModule);
127
128 ISharedRegionModule assetService = new LocalAssetServicesConnector();
129 IniConfigSource config = new IniConfigSource();
130 config.AddConfig("ServiceConnectors");
131 config.AddConfig("AssetService");
132 config.Configs["ServiceConnectors"].Set("AssetServices", "LocalAssetServicesConnector");
133 config.Configs["AssetService"].Set("LocalServiceModule", "OpenSim.Services.AssetService.dll:AssetService");
134 config.Configs["AssetService"].Set("StorageProvider", "OpenSim.Data.Null.dll");
135 assetService.Initialise(config);
136 assetService.AddRegion(testScene);
137 assetService.RegionLoaded(testScene);
138 //testScene.RegisterModuleInterface<IAssetService>((IAssetService)assetService);
125 139
126 testScene.SetModuleInterfaces(); 140 testScene.SetModuleInterfaces();
127 141