diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 14 |
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; | |||
40 | using OpenSim.Region.Framework.Scenes; | 40 | using OpenSim.Region.Framework.Scenes; |
41 | using OpenSim.Region.CoreModules.Agent.Capabilities; | 41 | using OpenSim.Region.CoreModules.Agent.Capabilities; |
42 | using OpenSim.Region.CoreModules.Avatar.Gods; | 42 | using OpenSim.Region.CoreModules.Avatar.Gods; |
43 | using OpenSim.Region.CoreModules.ServiceConnectors.Asset; | ||
44 | using OpenSim.Services.Interfaces; | ||
43 | using OpenSim.Tests.Common.Mock; | 45 | using OpenSim.Tests.Common.Mock; |
44 | 46 | ||
45 | namespace OpenSim.Tests.Common.Setup | 47 | namespace 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 | ||