rename test SceneSetupHelpers -> SceneHelpers for consistency
parent
cba40de109
commit
bda1a4be45
|
@ -65,8 +65,8 @@ namespace OpenSim.Region.CoreModules.Asset.Tests
|
||||||
config.Configs["AssetCache"].Set("MemoryCacheEnabled", "true");
|
config.Configs["AssetCache"].Set("MemoryCacheEnabled", "true");
|
||||||
|
|
||||||
m_cache = new FlotsamAssetCache();
|
m_cache = new FlotsamAssetCache();
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, config, m_cache);
|
SceneHelpers.SetupSceneModules(m_scene, config, m_cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -50,9 +50,9 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
UUID userId = TestHelper.ParseTail(0x1);
|
UUID userId = TestHelper.ParseTail(0x1);
|
||||||
|
|
||||||
AvatarFactoryModule afm = new AvatarFactoryModule();
|
AvatarFactoryModule afm = new AvatarFactoryModule();
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, afm);
|
SceneHelpers.SetupSceneModules(scene, afm);
|
||||||
TestClient tc = SceneSetupHelpers.AddClient(scene, userId);
|
TestClient tc = SceneHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
byte[] visualParams = new byte[AvatarAppearance.VISUALPARAM_COUNT];
|
byte[] visualParams = new byte[AvatarAppearance.VISUALPARAM_COUNT];
|
||||||
for (byte i = 0; i < visualParams.Length; i++)
|
for (byte i = 0; i < visualParams.Length; i++)
|
||||||
|
|
|
@ -100,8 +100,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, archiverModule);
|
SceneHelpers.SetupSceneModules(scene, archiverModule);
|
||||||
|
|
||||||
UserAccountHelpers.CreateUserWithInventory(scene, m_uaLL1, "hampshire");
|
UserAccountHelpers.CreateUserWithInventory(scene, m_uaLL1, "hampshire");
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
|
|
||||||
// Create scene object asset
|
// Create scene object asset
|
||||||
UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
|
UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
|
||||||
SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, ownerId, "Ray Gun Object", 0x50);
|
SceneObjectGroup object1 = SceneHelpers.CreateSceneObject(1, ownerId, "Ray Gun Object", 0x50);
|
||||||
|
|
||||||
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
||||||
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
||||||
|
@ -127,10 +127,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
scene.AddInventoryItem(item1);
|
scene.AddInventoryItem(item1);
|
||||||
|
|
||||||
// Create coalesced objects asset
|
// Create coalesced objects asset
|
||||||
SceneObjectGroup cobj1 = SceneSetupHelpers.CreateSceneObject(1, m_uaLL1.PrincipalID, "Object1", 0x120);
|
SceneObjectGroup cobj1 = SceneHelpers.CreateSceneObject(1, m_uaLL1.PrincipalID, "Object1", 0x120);
|
||||||
cobj1.AbsolutePosition = new Vector3(15, 30, 45);
|
cobj1.AbsolutePosition = new Vector3(15, 30, 45);
|
||||||
|
|
||||||
SceneObjectGroup cobj2 = SceneSetupHelpers.CreateSceneObject(1, m_uaLL1.PrincipalID, "Object2", 0x140);
|
SceneObjectGroup cobj2 = SceneHelpers.CreateSceneObject(1, m_uaLL1.PrincipalID, "Object2", 0x140);
|
||||||
cobj2.AbsolutePosition = new Vector3(25, 50, 75);
|
cobj2.AbsolutePosition = new Vector3(25, 50, 75);
|
||||||
|
|
||||||
CoalescedSceneObjects coa = new CoalescedSceneObjects(m_uaLL1.PrincipalID, cobj1, cobj2);
|
CoalescedSceneObjects coa = new CoalescedSceneObjects(m_uaLL1.PrincipalID, cobj1, cobj2);
|
||||||
|
|
|
@ -61,8 +61,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
SerialiserModule serialiserModule = new SerialiserModule();
|
SerialiserModule serialiserModule = new SerialiserModule();
|
||||||
m_archiverModule = new InventoryArchiverModule();
|
m_archiverModule = new InventoryArchiverModule();
|
||||||
|
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, serialiserModule, m_archiverModule);
|
SceneHelpers.SetupSceneModules(m_scene, serialiserModule, m_archiverModule);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -141,7 +141,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
|
|
||||||
// Create asset
|
// Create asset
|
||||||
UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
|
UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
|
||||||
SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, ownerId, "My Little Dog Object", 0x50);
|
SceneObjectGroup object1 = SceneHelpers.CreateSceneObject(1, ownerId, "My Little Dog Object", 0x50);
|
||||||
|
|
||||||
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
||||||
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
||||||
|
@ -236,7 +236,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
|
|
||||||
// Create asset
|
// Create asset
|
||||||
UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
|
UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
|
||||||
SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, ownerId, "My Little Dog Object", 0x50);
|
SceneObjectGroup object1 = SceneHelpers.CreateSceneObject(1, ownerId, "My Little Dog Object", 0x50);
|
||||||
|
|
||||||
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
||||||
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
||||||
|
|
|
@ -62,8 +62,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
|
|
||||||
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, archiverModule);
|
SceneHelpers.SetupSceneModules(scene, archiverModule);
|
||||||
|
|
||||||
// Create user
|
// Create user
|
||||||
string userFirstName = "Jock";
|
string userFirstName = "Jock";
|
||||||
|
@ -179,9 +179,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
||||||
|
|
||||||
// Annoyingly, we have to set up a scene even though inventory loading has nothing to do with a scene
|
// Annoyingly, we have to set up a scene even though inventory loading has nothing to do with a scene
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, serialiserModule, archiverModule);
|
SceneHelpers.SetupSceneModules(scene, serialiserModule, archiverModule);
|
||||||
|
|
||||||
UserAccountHelpers.CreateUserWithInventory(scene, m_uaMT, "meowfood");
|
UserAccountHelpers.CreateUserWithInventory(scene, m_uaMT, "meowfood");
|
||||||
UserAccountHelpers.CreateUserWithInventory(scene, m_uaLL1, "hampshire");
|
UserAccountHelpers.CreateUserWithInventory(scene, m_uaLL1, "hampshire");
|
||||||
|
@ -222,8 +222,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
|
|
||||||
SerialiserModule serialiserModule = new SerialiserModule();
|
SerialiserModule serialiserModule = new SerialiserModule();
|
||||||
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, serialiserModule, archiverModule);
|
SceneHelpers.SetupSceneModules(scene, serialiserModule, archiverModule);
|
||||||
|
|
||||||
UserAccountHelpers.CreateUserWithInventory(scene, m_uaMT, "password");
|
UserAccountHelpers.CreateUserWithInventory(scene, m_uaMT, "password");
|
||||||
archiverModule.DearchiveInventory(m_uaMT.FirstName, m_uaMT.LastName, "/Objects", "password", m_iarStream);
|
archiverModule.DearchiveInventory(m_uaMT.FirstName, m_uaMT.LastName, "/Objects", "password", m_iarStream);
|
||||||
|
@ -247,8 +247,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
|
|
||||||
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
InventoryArchiverModule archiverModule = new InventoryArchiverModule();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, archiverModule);
|
SceneHelpers.SetupSceneModules(scene, archiverModule);
|
||||||
|
|
||||||
// Create user
|
// Create user
|
||||||
string userFirstName = "Jock";
|
string userFirstName = "Jock";
|
||||||
|
@ -326,7 +326,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
||||||
|
|
||||||
Dictionary <string, InventoryFolderBase> foldersCreated = new Dictionary<string, InventoryFolderBase>();
|
Dictionary <string, InventoryFolderBase> foldersCreated = new Dictionary<string, InventoryFolderBase>();
|
||||||
|
@ -393,7 +393,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
//log4net.Config.XmlConfigurator.Configure();
|
//log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
||||||
|
|
||||||
string folder1ExistingName = "a";
|
string folder1ExistingName = "a";
|
||||||
|
@ -444,7 +444,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
UserAccount ua1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
||||||
|
|
||||||
string folder1ExistingName = "a";
|
string folder1ExistingName = "a";
|
||||||
|
|
|
@ -65,8 +65,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
|
||||||
config.AddConfig("Modules");
|
config.AddConfig("Modules");
|
||||||
config.Configs["Modules"].Set("InventoryAccessModule", "BasicInventoryAccessModule");
|
config.Configs["Modules"].Set("InventoryAccessModule", "BasicInventoryAccessModule");
|
||||||
|
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, config, m_iam);
|
SceneHelpers.SetupSceneModules(m_scene, config, m_iam);
|
||||||
|
|
||||||
// Create user
|
// Create user
|
||||||
string userFirstName = "Jock";
|
string userFirstName = "Jock";
|
||||||
|
@ -86,10 +86,10 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
// Create asset
|
// Create asset
|
||||||
SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "Object1", 0x20);
|
SceneObjectGroup object1 = SceneHelpers.CreateSceneObject(1, m_userId, "Object1", 0x20);
|
||||||
object1.AbsolutePosition = new Vector3(15, 30, 45);
|
object1.AbsolutePosition = new Vector3(15, 30, 45);
|
||||||
|
|
||||||
SceneObjectGroup object2 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "Object2", 0x40);
|
SceneObjectGroup object2 = SceneHelpers.CreateSceneObject(1, m_userId, "Object2", 0x40);
|
||||||
object2.AbsolutePosition = new Vector3(25, 50, 75);
|
object2.AbsolutePosition = new Vector3(25, 50, 75);
|
||||||
|
|
||||||
CoalescedSceneObjects coa = new CoalescedSceneObjects(m_userId, object1, object2);
|
CoalescedSceneObjects coa = new CoalescedSceneObjects(m_userId, object1, object2);
|
||||||
|
@ -142,7 +142,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
// Create asset
|
// Create asset
|
||||||
SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "My Little Dog Object", 0x40);
|
SceneObjectGroup object1 = SceneHelpers.CreateSceneObject(1, m_userId, "My Little Dog Object", 0x40);
|
||||||
|
|
||||||
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
|
||||||
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
|
||||||
|
|
|
@ -68,8 +68,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
||||||
SerialiserModule serialiserModule = new SerialiserModule();
|
SerialiserModule serialiserModule = new SerialiserModule();
|
||||||
TerrainModule terrainModule = new TerrainModule();
|
TerrainModule terrainModule = new TerrainModule();
|
||||||
|
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, m_archiverModule, serialiserModule, terrainModule);
|
SceneHelpers.SetupSceneModules(m_scene, m_archiverModule, serialiserModule, terrainModule);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadCompleted(Guid requestId, string errorMessage)
|
private void LoadCompleted(Guid requestId, string errorMessage)
|
||||||
|
@ -524,8 +524,8 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests
|
||||||
SerialiserModule serialiserModule = new SerialiserModule();
|
SerialiserModule serialiserModule = new SerialiserModule();
|
||||||
TerrainModule terrainModule = new TerrainModule();
|
TerrainModule terrainModule = new TerrainModule();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, archiverModule, serialiserModule, terrainModule);
|
SceneHelpers.SetupSceneModules(scene, archiverModule, serialiserModule, terrainModule);
|
||||||
|
|
||||||
m_scene.AddNewSceneObject(new SceneObjectGroup(part2), false);
|
m_scene.AddNewSceneObject(new SceneObjectGroup(part2), false);
|
||||||
|
|
||||||
|
|
|
@ -64,8 +64,8 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
{
|
{
|
||||||
m_pcm = new PrimCountModule();
|
m_pcm = new PrimCountModule();
|
||||||
LandManagementModule lmm = new LandManagementModule();
|
LandManagementModule lmm = new LandManagementModule();
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, lmm, m_pcm);
|
SceneHelpers.SetupSceneModules(m_scene, lmm, m_pcm);
|
||||||
|
|
||||||
int xParcelDivider = (int)Constants.RegionSize - 1;
|
int xParcelDivider = (int)Constants.RegionSize - 1;
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
SceneObjectGroup sog = SceneHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
||||||
m_scene.AddNewSceneObject(sog, false);
|
m_scene.AddNewSceneObject(sog, false);
|
||||||
|
|
||||||
Assert.That(pc.Owner, Is.EqualTo(3));
|
Assert.That(pc.Owner, Is.EqualTo(3));
|
||||||
|
@ -124,7 +124,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
Assert.That(pc.Simulator, Is.EqualTo(3));
|
Assert.That(pc.Simulator, Is.EqualTo(3));
|
||||||
|
|
||||||
// Add a second object and retest
|
// Add a second object and retest
|
||||||
SceneObjectGroup sog2 = SceneSetupHelpers.CreateSceneObject(2, m_userId, "b", 0x10);
|
SceneObjectGroup sog2 = SceneHelpers.CreateSceneObject(2, m_userId, "b", 0x10);
|
||||||
m_scene.AddNewSceneObject(sog2, false);
|
m_scene.AddNewSceneObject(sog2, false);
|
||||||
|
|
||||||
Assert.That(pc.Owner, Is.EqualTo(5));
|
Assert.That(pc.Owner, Is.EqualTo(5));
|
||||||
|
@ -148,7 +148,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
SceneObjectGroup sog = SceneHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
||||||
m_scene.AddNewSceneObject(sog, false);
|
m_scene.AddNewSceneObject(sog, false);
|
||||||
m_scene.SceneGraph.DuplicateObject(sog.LocalId, Vector3.Zero, 0, m_userId, UUID.Zero, Quaternion.Identity);
|
m_scene.SceneGraph.DuplicateObject(sog.LocalId, Vector3.Zero, 0, m_userId, UUID.Zero, Quaternion.Identity);
|
||||||
|
|
||||||
|
@ -172,9 +172,9 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
SceneObjectGroup sog = SceneHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
||||||
m_scene.AddNewSceneObject(sog, false);
|
m_scene.AddNewSceneObject(sog, false);
|
||||||
SceneObjectGroup sog2 = SceneSetupHelpers.CreateSceneObject(2, m_userId, "b", 0x10);
|
SceneObjectGroup sog2 = SceneHelpers.CreateSceneObject(2, m_userId, "b", 0x10);
|
||||||
m_scene.AddNewSceneObject(sog2, false);
|
m_scene.AddNewSceneObject(sog2, false);
|
||||||
|
|
||||||
// Move the first scene object to the eastern strip parcel
|
// Move the first scene object to the eastern strip parcel
|
||||||
|
@ -235,8 +235,8 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
m_scene.AddNewSceneObject(SceneSetupHelpers.CreateSceneObject(1, m_userId, "a", 0x1), false);
|
m_scene.AddNewSceneObject(SceneHelpers.CreateSceneObject(1, m_userId, "a", 0x1), false);
|
||||||
SceneObjectGroup sogToDelete = SceneSetupHelpers.CreateSceneObject(3, m_userId, "b", 0x10);
|
SceneObjectGroup sogToDelete = SceneHelpers.CreateSceneObject(3, m_userId, "b", 0x10);
|
||||||
m_scene.AddNewSceneObject(sogToDelete, false);
|
m_scene.AddNewSceneObject(sogToDelete, false);
|
||||||
m_scene.DeleteSceneObject(sogToDelete, false);
|
m_scene.DeleteSceneObject(sogToDelete, false);
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_otherUserId, "a", 0x01);
|
SceneObjectGroup sog = SceneHelpers.CreateSceneObject(3, m_otherUserId, "a", 0x01);
|
||||||
sog.GroupID = m_groupId;
|
sog.GroupID = m_groupId;
|
||||||
m_scene.AddNewSceneObject(sog, false);
|
m_scene.AddNewSceneObject(sog, false);
|
||||||
|
|
||||||
|
@ -291,11 +291,11 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
SceneObjectGroup sogToKeep = SceneSetupHelpers.CreateSceneObject(1, m_userId, "a", 0x1);
|
SceneObjectGroup sogToKeep = SceneHelpers.CreateSceneObject(1, m_userId, "a", 0x1);
|
||||||
sogToKeep.GroupID = m_groupId;
|
sogToKeep.GroupID = m_groupId;
|
||||||
m_scene.AddNewSceneObject(sogToKeep, false);
|
m_scene.AddNewSceneObject(sogToKeep, false);
|
||||||
|
|
||||||
SceneObjectGroup sogToDelete = SceneSetupHelpers.CreateSceneObject(3, m_userId, "b", 0x10);
|
SceneObjectGroup sogToDelete = SceneHelpers.CreateSceneObject(3, m_userId, "b", 0x10);
|
||||||
m_scene.AddNewSceneObject(sogToDelete, false);
|
m_scene.AddNewSceneObject(sogToDelete, false);
|
||||||
m_scene.DeleteSceneObject(sogToDelete, false);
|
m_scene.DeleteSceneObject(sogToDelete, false);
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_otherUserId, "a", 0x01);
|
SceneObjectGroup sog = SceneHelpers.CreateSceneObject(3, m_otherUserId, "a", 0x01);
|
||||||
m_scene.AddNewSceneObject(sog, false);
|
m_scene.AddNewSceneObject(sog, false);
|
||||||
|
|
||||||
Assert.That(pc.Owner, Is.EqualTo(0));
|
Assert.That(pc.Owner, Is.EqualTo(0));
|
||||||
|
@ -339,8 +339,8 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
|
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
m_scene.AddNewSceneObject(SceneSetupHelpers.CreateSceneObject(1, m_otherUserId, "a", 0x1), false);
|
m_scene.AddNewSceneObject(SceneHelpers.CreateSceneObject(1, m_otherUserId, "a", 0x1), false);
|
||||||
SceneObjectGroup sogToDelete = SceneSetupHelpers.CreateSceneObject(3, m_otherUserId, "b", 0x10);
|
SceneObjectGroup sogToDelete = SceneHelpers.CreateSceneObject(3, m_otherUserId, "b", 0x10);
|
||||||
m_scene.AddNewSceneObject(sogToDelete, false);
|
m_scene.AddNewSceneObject(sogToDelete, false);
|
||||||
m_scene.DeleteSceneObject(sogToDelete, false);
|
m_scene.DeleteSceneObject(sogToDelete, false);
|
||||||
|
|
||||||
|
@ -363,7 +363,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
IPrimCounts pc = m_lo.PrimCounts;
|
IPrimCounts pc = m_lo.PrimCounts;
|
||||||
|
|
||||||
SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
SceneObjectGroup sog = SceneHelpers.CreateSceneObject(3, m_userId, "a", 0x01);
|
||||||
m_scene.AddNewSceneObject(sog, false);
|
m_scene.AddNewSceneObject(sog, false);
|
||||||
|
|
||||||
m_pcm.TaintPrimCount();
|
m_pcm.TaintPrimCount();
|
||||||
|
|
|
@ -53,8 +53,8 @@ namespace OpenSim.Region.CoreModules.World.Media.Moap.Tests
|
||||||
public void SetUp()
|
public void SetUp()
|
||||||
{
|
{
|
||||||
m_module = new MoapModule();
|
m_module = new MoapModule();
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, m_module);
|
SceneHelpers.SetupSceneModules(m_scene, m_module);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -63,7 +63,7 @@ namespace OpenSim.Region.CoreModules.World.Media.Moap.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(m_scene);
|
SceneObjectPart part = SceneHelpers.AddSceneObject(m_scene);
|
||||||
MediaEntry me = new MediaEntry();
|
MediaEntry me = new MediaEntry();
|
||||||
|
|
||||||
m_module.SetMediaEntry(part, 1, me);
|
m_module.SetMediaEntry(part, 1, me);
|
||||||
|
@ -88,7 +88,7 @@ namespace OpenSim.Region.CoreModules.World.Media.Moap.Tests
|
||||||
|
|
||||||
string homeUrl = "opensimulator.org";
|
string homeUrl = "opensimulator.org";
|
||||||
|
|
||||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(m_scene);
|
SceneObjectPart part = SceneHelpers.AddSceneObject(m_scene);
|
||||||
MediaEntry me = new MediaEntry() { HomeURL = homeUrl };
|
MediaEntry me = new MediaEntry() { HomeURL = homeUrl };
|
||||||
|
|
||||||
m_module.SetMediaEntry(part, 1, me);
|
m_module.SetMediaEntry(part, 1, me);
|
||||||
|
|
|
@ -236,8 +236,8 @@ namespace OpenSim.Region.CoreModules.World.Serialiser.Tests
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
m_serialiserModule = new SerialiserModule();
|
m_serialiserModule = new SerialiserModule();
|
||||||
m_scene = SceneSetupHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(m_scene, m_serialiserModule);
|
SceneHelpers.SetupSceneModules(m_scene, m_serialiserModule);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -64,14 +64,14 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
scene = SceneSetupHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
|
scene = SceneHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
|
||||||
scene2 = SceneSetupHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000);
|
scene2 = SceneHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000);
|
||||||
|
|
||||||
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
||||||
interregionComms.Initialise(new IniConfigSource());
|
interregionComms.Initialise(new IniConfigSource());
|
||||||
interregionComms.PostInitialise();
|
interregionComms.PostInitialise();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(scene, new IniConfigSource(), interregionComms);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene2, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(scene2, new IniConfigSource(), interregionComms);
|
||||||
|
|
||||||
agent1 = UUID.Random();
|
agent1 = UUID.Random();
|
||||||
random = new Random();
|
random = new Random();
|
||||||
|
@ -83,7 +83,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
region1 = scene.RegionInfo.RegionHandle;
|
region1 = scene.RegionInfo.RegionHandle;
|
||||||
region2 = scene2.RegionInfo.RegionHandle;
|
region2 = scene2.RegionInfo.RegionHandle;
|
||||||
|
|
||||||
SceneSetupHelpers.AddClient(scene, agent1);
|
SceneHelpers.AddClient(scene, agent1);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -126,8 +126,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
presence2.AddAttachment(sog2);
|
presence2.AddAttachment(sog2);
|
||||||
|
|
||||||
ISharedRegionModule serialiser = new SerialiserModule();
|
ISharedRegionModule serialiser = new SerialiserModule();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, new IniConfigSource(), serialiser);
|
SceneHelpers.SetupSceneModules(scene, new IniConfigSource(), serialiser);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene2, new IniConfigSource(), serialiser);
|
SceneHelpers.SetupSceneModules(scene2, new IniConfigSource(), serialiser);
|
||||||
|
|
||||||
Assert.That(presence.HasAttachments(), Is.False, "Presence has attachments before cross");
|
Assert.That(presence.HasAttachments(), Is.False, "Presence has attachments before cross");
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
static public Random random;
|
static public Random random;
|
||||||
SceneObjectGroup found;
|
SceneObjectGroup found;
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void T010_AddObjects()
|
public void T010_AddObjects()
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
public void TestDuplicateObject()
|
public void TestDuplicateObject()
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
UUID ownerId = new UUID("00000000-0000-0000-0000-000000000010");
|
UUID ownerId = new UUID("00000000-0000-0000-0000-000000000010");
|
||||||
string part1Name = "part1";
|
string part1Name = "part1";
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
string objName = "obj1";
|
string objName = "obj1";
|
||||||
UUID objUuid = new UUID("00000000-0000-0000-0000-000000000001");
|
UUID objUuid = new UUID("00000000-0000-0000-0000-000000000001");
|
||||||
|
@ -78,7 +78,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
string obj1Name = "Alfred";
|
string obj1Name = "Alfred";
|
||||||
string obj2Name = "Betty";
|
string obj2Name = "Betty";
|
||||||
|
@ -112,8 +112,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part = SceneHelpers.AddSceneObject(scene);
|
||||||
scene.DeleteSceneObject(part.ParentGroup, false);
|
scene.DeleteSceneObject(part.ParentGroup, false);
|
||||||
|
|
||||||
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
||||||
|
@ -131,15 +131,15 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
|
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
||||||
sogd.Enabled = false;
|
sogd.Enabled = false;
|
||||||
|
|
||||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part = SceneHelpers.AddSceneObject(scene);
|
||||||
|
|
||||||
IClientAPI client = SceneSetupHelpers.AddClient(scene, agentId);
|
IClientAPI client = SceneHelpers.AddClient(scene, agentId);
|
||||||
scene.DeRezObjects(client, new System.Collections.Generic.List<uint>() { part.LocalId }, UUID.Zero, DeRezAction.Delete, UUID.Zero);
|
scene.DeRezObjects(client, new System.Collections.Generic.List<uint>() { part.LocalId }, UUID.Zero, DeRezAction.Delete, UUID.Zero);
|
||||||
|
|
||||||
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
||||||
|
|
|
@ -61,12 +61,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
UUID userId = UUID.Parse("10000000-0000-0000-0000-000000000001");
|
UUID userId = UUID.Parse("10000000-0000-0000-0000-000000000001");
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
IConfig config = configSource.AddConfig("Startup");
|
IConfig config = configSource.AddConfig("Startup");
|
||||||
config.Set("serverside_object_permissions", true);
|
config.Set("serverside_object_permissions", true);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
SceneHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
||||||
TestClient client = SceneSetupHelpers.AddClient(scene, userId);
|
TestClient client = SceneHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
||||||
|
@ -100,12 +100,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
UUID userId = UUID.Parse("10000000-0000-0000-0000-000000000001");
|
UUID userId = UUID.Parse("10000000-0000-0000-0000-000000000001");
|
||||||
UUID objectOwnerId = UUID.Parse("20000000-0000-0000-0000-000000000001");
|
UUID objectOwnerId = UUID.Parse("20000000-0000-0000-0000-000000000001");
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
IConfig config = configSource.AddConfig("Startup");
|
IConfig config = configSource.AddConfig("Startup");
|
||||||
config.Set("serverside_object_permissions", true);
|
config.Set("serverside_object_permissions", true);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
SceneHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
||||||
TestClient client = SceneSetupHelpers.AddClient(scene, userId);
|
TestClient client = SceneHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
||||||
|
|
|
@ -54,10 +54,10 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
bool debugtest = false;
|
bool debugtest = false;
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneObjectPart part1 = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part1 = SceneHelpers.AddSceneObject(scene);
|
||||||
SceneObjectGroup grp1 = part1.ParentGroup;
|
SceneObjectGroup grp1 = part1.ParentGroup;
|
||||||
SceneObjectPart part2 = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part2 = SceneHelpers.AddSceneObject(scene);
|
||||||
SceneObjectGroup grp2 = part2.ParentGroup;
|
SceneObjectGroup grp2 = part2.ParentGroup;
|
||||||
|
|
||||||
grp1.AbsolutePosition = new Vector3(10, 10, 10);
|
grp1.AbsolutePosition = new Vector3(10, 10, 10);
|
||||||
|
@ -136,14 +136,14 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
bool debugtest = false;
|
bool debugtest = false;
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneObjectPart part1 = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part1 = SceneHelpers.AddSceneObject(scene);
|
||||||
SceneObjectGroup grp1 = part1.ParentGroup;
|
SceneObjectGroup grp1 = part1.ParentGroup;
|
||||||
SceneObjectPart part2 = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part2 = SceneHelpers.AddSceneObject(scene);
|
||||||
SceneObjectGroup grp2 = part2.ParentGroup;
|
SceneObjectGroup grp2 = part2.ParentGroup;
|
||||||
SceneObjectPart part3 = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part3 = SceneHelpers.AddSceneObject(scene);
|
||||||
SceneObjectGroup grp3 = part3.ParentGroup;
|
SceneObjectGroup grp3 = part3.ParentGroup;
|
||||||
SceneObjectPart part4 = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part4 = SceneHelpers.AddSceneObject(scene);
|
||||||
SceneObjectGroup grp4 = part4.ParentGroup;
|
SceneObjectGroup grp4 = part4.ParentGroup;
|
||||||
|
|
||||||
grp1.AbsolutePosition = new Vector3(10, 10, 10);
|
grp1.AbsolutePosition = new Vector3(10, 10, 10);
|
||||||
|
@ -269,7 +269,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
//log4net.Config.XmlConfigurator.Configure();
|
//log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
string rootPartName = "rootpart";
|
string rootPartName = "rootpart";
|
||||||
UUID rootPartUuid = new UUID("00000000-0000-0000-0000-000000000001");
|
UUID rootPartUuid = new UUID("00000000-0000-0000-0000-000000000001");
|
||||||
|
@ -308,7 +308,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
//log4net.Config.XmlConfigurator.Configure();
|
//log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
string rootPartName = "rootpart";
|
string rootPartName = "rootpart";
|
||||||
UUID rootPartUuid = new UUID("00000000-0000-0000-0000-000000000001");
|
UUID rootPartUuid = new UUID("00000000-0000-0000-0000-000000000001");
|
||||||
|
|
|
@ -52,8 +52,8 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneObjectGroup g1 = SceneSetupHelpers.AddSceneObject(scene).ParentGroup;
|
SceneObjectGroup g1 = SceneHelpers.AddSceneObject(scene).ParentGroup;
|
||||||
|
|
||||||
g1.GroupResize(new Vector3(2, 3, 4));
|
g1.GroupResize(new Vector3(2, 3, 4));
|
||||||
|
|
||||||
|
@ -75,9 +75,9 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
//log4net.Config.XmlConfigurator.Configure();
|
//log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
|
|
||||||
SceneObjectGroup g1 = SceneSetupHelpers.CreateSceneObject(2, UUID.Zero);
|
SceneObjectGroup g1 = SceneHelpers.CreateSceneObject(2, UUID.Zero);
|
||||||
g1.RootPart.Scale = new Vector3(2, 3, 4);
|
g1.RootPart.Scale = new Vector3(2, 3, 4);
|
||||||
g1.Parts[1].Scale = new Vector3(5, 6, 7);
|
g1.Parts[1].Scale = new Vector3(5, 6, 7);
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
// Scene scene = SceneSetupHelpers.SetupScene();
|
// Scene scene = SceneSetupHelpers.SetupScene();
|
||||||
SceneObjectGroup so = SceneSetupHelpers.CreateSceneObject(1, UUID.Zero);
|
SceneObjectGroup so = SceneHelpers.CreateSceneObject(1, UUID.Zero);
|
||||||
SceneObjectPart rootPart = so.RootPart;
|
SceneObjectPart rootPart = so.RootPart;
|
||||||
Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None));
|
Assert.That(rootPart.Flags, Is.EqualTo(PrimFlags.None));
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
UUID userId = UUID.Parse("10000000-0000-0000-0000-000000000001");
|
UUID userId = UUID.Parse("10000000-0000-0000-0000-000000000001");
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
|
|
||||||
IConfig startupConfig = configSource.AddConfig("Startup");
|
IConfig startupConfig = configSource.AddConfig("Startup");
|
||||||
|
@ -69,13 +69,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
groupsConfig.Set("Module", "GroupsModule");
|
groupsConfig.Set("Module", "GroupsModule");
|
||||||
groupsConfig.Set("DebugEnabled", true);
|
groupsConfig.Set("DebugEnabled", true);
|
||||||
|
|
||||||
SceneSetupHelpers.SetupSceneModules(
|
SceneHelpers.SetupSceneModules(
|
||||||
scene, configSource, new object[]
|
scene, configSource, new object[]
|
||||||
{ new PermissionsModule(),
|
{ new PermissionsModule(),
|
||||||
new GroupsModule(),
|
new GroupsModule(),
|
||||||
new MockGroupsServicesConnector() });
|
new MockGroupsServicesConnector() });
|
||||||
|
|
||||||
TestClient client = SceneSetupHelpers.AddClient(scene, userId);
|
TestClient client = SceneHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
IGroupsModule groupsModule = scene.RequestModuleInterface<IGroupsModule>();
|
IGroupsModule groupsModule = scene.RequestModuleInterface<IGroupsModule>();
|
||||||
|
|
||||||
|
|
|
@ -66,16 +66,16 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
scene = SceneSetupHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
|
scene = SceneHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
|
||||||
scene2 = SceneSetupHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000);
|
scene2 = SceneHelpers.SetupScene("Neighbour x+1", UUID.Random(), 1001, 1000);
|
||||||
scene3 = SceneSetupHelpers.SetupScene("Neighbour x-1", UUID.Random(), 999, 1000);
|
scene3 = SceneHelpers.SetupScene("Neighbour x-1", UUID.Random(), 999, 1000);
|
||||||
|
|
||||||
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
||||||
interregionComms.Initialise(new IniConfigSource());
|
interregionComms.Initialise(new IniConfigSource());
|
||||||
interregionComms.PostInitialise();
|
interregionComms.PostInitialise();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(scene, new IniConfigSource(), interregionComms);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene2, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(scene2, new IniConfigSource(), interregionComms);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene3, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(scene3, new IniConfigSource(), interregionComms);
|
||||||
|
|
||||||
agent1 = UUID.Random();
|
agent1 = UUID.Random();
|
||||||
agent2 = UUID.Random();
|
agent2 = UUID.Random();
|
||||||
|
@ -203,16 +203,16 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
UUID agent1Id = UUID.Parse("00000000-0000-0000-0000-000000000001");
|
UUID agent1Id = UUID.Parse("00000000-0000-0000-0000-000000000001");
|
||||||
|
|
||||||
TestScene myScene1 = SceneSetupHelpers.SetupScene("Neighbour y", UUID.Random(), 1000, 1000);
|
TestScene myScene1 = SceneHelpers.SetupScene("Neighbour y", UUID.Random(), 1000, 1000);
|
||||||
TestScene myScene2 = SceneSetupHelpers.SetupScene("Neighbour y + 1", UUID.Random(), 1001, 1000);
|
TestScene myScene2 = SceneHelpers.SetupScene("Neighbour y + 1", UUID.Random(), 1001, 1000);
|
||||||
|
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
configSource.AddConfig("Modules").Set("EntityTransferModule", "BasicEntityTransferModule");
|
configSource.AddConfig("Modules").Set("EntityTransferModule", "BasicEntityTransferModule");
|
||||||
EntityTransferModule etm = new EntityTransferModule();
|
EntityTransferModule etm = new EntityTransferModule();
|
||||||
|
|
||||||
SceneSetupHelpers.SetupSceneModules(myScene1, configSource, etm);
|
SceneHelpers.SetupSceneModules(myScene1, configSource, etm);
|
||||||
|
|
||||||
SceneSetupHelpers.AddClient(myScene1, agent1Id);
|
SceneHelpers.AddClient(myScene1, agent1Id);
|
||||||
ScenePresence childPresence = myScene2.GetScenePresence(agent1);
|
ScenePresence childPresence = myScene2.GetScenePresence(agent1);
|
||||||
|
|
||||||
// TODO: Need to do a fair amount of work to allow synchronous establishment of child agents
|
// TODO: Need to do a fair amount of work to allow synchronous establishment of child agents
|
||||||
|
|
|
@ -60,7 +60,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
{
|
{
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
scene.Update();
|
scene.Update();
|
||||||
|
|
||||||
Assert.That(scene.Frame, Is.EqualTo(1));
|
Assert.That(scene.Frame, Is.EqualTo(1));
|
||||||
|
|
|
@ -116,16 +116,16 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
||||||
|
|
||||||
|
|
||||||
Scene sceneB = SceneSetupHelpers.SetupScene("sceneB", sceneBId, 1010, 1010);
|
Scene sceneB = SceneHelpers.SetupScene("sceneB", sceneBId, 1010, 1010);
|
||||||
SceneSetupHelpers.SetupSceneModules(sceneB, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(sceneB, new IniConfigSource(), interregionComms);
|
||||||
sceneB.RegisterRegionWithGrid();
|
sceneB.RegisterRegionWithGrid();
|
||||||
|
|
||||||
Scene sceneA = SceneSetupHelpers.SetupScene("sceneA", sceneAId, 1000, 1000);
|
Scene sceneA = SceneHelpers.SetupScene("sceneA", sceneAId, 1000, 1000);
|
||||||
SceneSetupHelpers.SetupSceneModules(sceneA, new IniConfigSource(), interregionComms);
|
SceneHelpers.SetupSceneModules(sceneA, new IniConfigSource(), interregionComms);
|
||||||
sceneA.RegisterRegionWithGrid();
|
sceneA.RegisterRegionWithGrid();
|
||||||
|
|
||||||
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000041");
|
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000041");
|
||||||
TestClient client = SceneSetupHelpers.AddClient(sceneA, agentId);
|
TestClient client = SceneHelpers.AddClient(sceneA, agentId);
|
||||||
|
|
||||||
ICapabilitiesModule sceneACapsModule = sceneA.RequestModuleInterface<ICapabilitiesModule>();
|
ICapabilitiesModule sceneACapsModule = sceneA.RequestModuleInterface<ICapabilitiesModule>();
|
||||||
|
|
||||||
|
|
|
@ -58,9 +58,9 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
||||||
SceneObjectGroup sog1 = SceneSetupHelpers.CreateSceneObject(1, user1.PrincipalID);
|
SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, user1.PrincipalID);
|
||||||
SceneObjectPart sop1 = sog1.RootPart;
|
SceneObjectPart sop1 = sog1.RootPart;
|
||||||
|
|
||||||
// Create an object embedded inside the first
|
// Create an object embedded inside the first
|
||||||
|
@ -101,9 +101,9 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
||||||
SceneObjectGroup sog1 = SceneSetupHelpers.CreateSceneObject(1, user1.PrincipalID);
|
SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, user1.PrincipalID);
|
||||||
SceneObjectPart sop1 = sog1.RootPart;
|
SceneObjectPart sop1 = sog1.RootPart;
|
||||||
TaskInventoryItem sopItem1 = TaskInventoryHelpers.AddNotecard(scene, sop1);
|
TaskInventoryItem sopItem1 = TaskInventoryHelpers.AddNotecard(scene, sop1);
|
||||||
|
|
||||||
|
@ -128,9 +128,9 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene);
|
||||||
SceneObjectGroup sog1 = SceneSetupHelpers.CreateSceneObject(1, user1.PrincipalID);
|
SceneObjectGroup sog1 = SceneHelpers.CreateSceneObject(1, user1.PrincipalID);
|
||||||
SceneObjectPart sop1 = sog1.RootPart;
|
SceneObjectPart sop1 = sog1.RootPart;
|
||||||
TaskInventoryItem sopItem1 = TaskInventoryHelpers.AddNotecard(scene, sop1);
|
TaskInventoryItem sopItem1 = TaskInventoryHelpers.AddNotecard(scene, sop1);
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene, 1001);
|
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene, 1001);
|
||||||
UserAccount user2 = UserAccountHelpers.CreateUserWithInventory(scene, 1002);
|
UserAccount user2 = UserAccountHelpers.CreateUserWithInventory(scene, 1002);
|
||||||
InventoryItemBase item1 = UserInventoryHelpers.CreateInventoryItem(scene, "item1", user1.PrincipalID);
|
InventoryItemBase item1 = UserInventoryHelpers.CreateInventoryItem(scene, "item1", user1.PrincipalID);
|
||||||
|
@ -85,7 +85,7 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene, 1001);
|
UserAccount user1 = UserAccountHelpers.CreateUserWithInventory(scene, 1001);
|
||||||
UserAccount user2 = UserAccountHelpers.CreateUserWithInventory(scene, 1002);
|
UserAccount user2 = UserAccountHelpers.CreateUserWithInventory(scene, 1002);
|
||||||
InventoryFolderBase folder1
|
InventoryFolderBase folder1
|
||||||
|
|
|
@ -47,7 +47,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
// FIXME: We don't need a full scene here - it would be enough to set up the asset service.
|
// FIXME: We don't need a full scene here - it would be enough to set up the asset service.
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
m_assetService = scene.AssetService;
|
m_assetService = scene.AssetService;
|
||||||
m_uuidGatherer = new UuidGatherer(m_assetService);
|
m_uuidGatherer = new UuidGatherer(m_assetService);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,13 +50,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests
|
||||||
TestHelper.InMethod();
|
TestHelper.InMethod();
|
||||||
// log4net.Config.XmlConfigurator.Configure();
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
IConfigSource configSource = new IniConfigSource();
|
IConfigSource configSource = new IniConfigSource();
|
||||||
IConfig config = configSource.AddConfig("Groups");
|
IConfig config = configSource.AddConfig("Groups");
|
||||||
config.Set("Enabled", true);
|
config.Set("Enabled", true);
|
||||||
config.Set("Module", "GroupsModule");
|
config.Set("Module", "GroupsModule");
|
||||||
config.Set("DebugEnabled", true);
|
config.Set("DebugEnabled", true);
|
||||||
SceneSetupHelpers.SetupSceneModules(
|
SceneHelpers.SetupSceneModules(
|
||||||
scene, configSource, new object[] { new MockGroupsServicesConnector() });
|
scene, configSource, new object[] { new MockGroupsServicesConnector() });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,9 +57,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||||
config.Configs["NPC"].Set("Enabled", "true");
|
config.Configs["NPC"].Set("Enabled", "true");
|
||||||
|
|
||||||
AvatarFactoryModule afm = new AvatarFactoryModule();
|
AvatarFactoryModule afm = new AvatarFactoryModule();
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, config, afm, new NPCModule());
|
SceneHelpers.SetupSceneModules(scene, config, afm, new NPCModule());
|
||||||
TestClient originalClient = SceneSetupHelpers.AddClient(scene, TestHelper.ParseTail(0x1));
|
TestClient originalClient = SceneHelpers.AddClient(scene, TestHelper.ParseTail(0x1));
|
||||||
// ScenePresence originalAvatar = scene.GetScenePresence(originalClient.AgentId);
|
// ScenePresence originalAvatar = scene.GetScenePresence(originalClient.AgentId);
|
||||||
|
|
||||||
// 8 is the index of the first baked texture in AvatarAppearance
|
// 8 is the index of the first baked texture in AvatarAppearance
|
||||||
|
@ -94,9 +94,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||||
config.AddConfig("NPC");
|
config.AddConfig("NPC");
|
||||||
config.Configs["NPC"].Set("Enabled", "true");
|
config.Configs["NPC"].Set("Enabled", "true");
|
||||||
|
|
||||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
TestScene scene = SceneHelpers.SetupScene();
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, config, new NPCModule());
|
SceneHelpers.SetupSceneModules(scene, config, new NPCModule());
|
||||||
TestClient originalClient = SceneSetupHelpers.AddClient(scene, TestHelper.ParseTail(0x1));
|
TestClient originalClient = SceneHelpers.AddClient(scene, TestHelper.ParseTail(0x1));
|
||||||
// ScenePresence originalAvatar = scene.GetScenePresence(originalClient.AgentId);
|
// ScenePresence originalAvatar = scene.GetScenePresence(originalClient.AgentId);
|
||||||
|
|
||||||
Vector3 startPos = new Vector3(128, 128, 30);
|
Vector3 startPos = new Vector3(128, 128, 30);
|
||||||
|
|
|
@ -57,8 +57,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||||
config.Set("Enabled", "true");
|
config.Set("Enabled", "true");
|
||||||
|
|
||||||
Scene scene = SceneSetupHelpers.SetupScene();
|
Scene scene = SceneHelpers.SetupScene();
|
||||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part = SceneHelpers.AddSceneObject(scene);
|
||||||
|
|
||||||
XEngine.XEngine engine = new XEngine.XEngine();
|
XEngine.XEngine engine = new XEngine.XEngine();
|
||||||
engine.Initialise(initConfigSource);
|
engine.Initialise(initConfigSource);
|
||||||
|
|
|
@ -54,7 +54,7 @@ namespace OpenSim.Tests.Common
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helpers for setting up scenes.
|
/// Helpers for setting up scenes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SceneSetupHelpers
|
public class SceneHelpers
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set up a test scene
|
/// Set up a test scene
|
|
@ -74,7 +74,7 @@ namespace OpenSim.Tests.Common
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
public static TaskInventoryItem AddSceneObject(Scene scene, SceneObjectPart sop, string itemName, UUID id)
|
public static TaskInventoryItem AddSceneObject(Scene scene, SceneObjectPart sop, string itemName, UUID id)
|
||||||
{
|
{
|
||||||
SceneObjectGroup taskSceneObject = SceneSetupHelpers.CreateSceneObject(1, UUID.Zero);
|
SceneObjectGroup taskSceneObject = SceneHelpers.CreateSceneObject(1, UUID.Zero);
|
||||||
AssetBase taskSceneObjectAsset = AssetHelpers.CreateAsset(0x10, taskSceneObject);
|
AssetBase taskSceneObjectAsset = AssetHelpers.CreateAsset(0x10, taskSceneObject);
|
||||||
scene.AssetService.Store(taskSceneObjectAsset);
|
scene.AssetService.Store(taskSceneObjectAsset);
|
||||||
TaskInventoryItem taskSceneObjectItem
|
TaskInventoryItem taskSceneObjectItem
|
||||||
|
|
Loading…
Reference in New Issue