27 using NUnit.Framework;
29 using OpenSim.Framework;
30 using OpenSim.Region.CoreModules.World.Estate;
31 using OpenSim.Region.Framework.Scenes;
32 using OpenSim.Region.Framework.Interfaces;
33 using OpenSim.Services.Interfaces;
34 using OpenSim.Tests.Common;
36 namespace OpenSim.
Region.Framework.Scenes.Tests
54 TestHelpers.InMethod();
60 Scene scene = sh.SetupScene();
61 SceneHelpers.SetupSceneModules(scene, emm);
63 UUID telehubSceneObjectOwner = TestHelpers.ParseTail(0x1);
65 SceneObjectGroup telehubSo = SceneHelpers.AddSceneObject(scene,
"telehubObject", telehubSceneObjectOwner);
67 emm.HandleOnEstateManageTelehub(null, UUID.Zero, UUID.Zero,
"connect", telehubSo.LocalId);
68 scene.RegionInfo.EstateSettings.AllowDirectTeleport =
false;
71 UUID loggingInUserId = TestHelpers.ParseTail(0x2);
74 = UserAccountHelpers.CreateUserWithInventory(scene,
"Test",
"User", loggingInUserId,
"password");
76 SceneHelpers.AddScenePresence(scene, ua);
78 Assert.That(scene.GetScenePresence(loggingInUserId), Is.Not.Null);
87 TestHelpers.InMethod();
93 Scene scene = sh.SetupScene();
94 SceneHelpers.SetupSceneModules(scene, emm);
96 UUID telehubSceneObjectOwner = TestHelpers.ParseTail(0x1);
98 SceneObjectGroup telehubSo = SceneHelpers.AddSceneObject(scene,
"telehubObject", telehubSceneObjectOwner);
99 SceneObjectGroup spawnPointSo = SceneHelpers.AddSceneObject(scene,
"spawnpointObject", telehubSceneObjectOwner);
101 emm.HandleOnEstateManageTelehub(null, UUID.Zero, UUID.Zero,
"connect", telehubSo.LocalId);
102 emm.HandleOnEstateManageTelehub(null, UUID.Zero, UUID.Zero,
"spawnpoint add", spawnPointSo.LocalId);
103 scene.RegionInfo.EstateSettings.AllowDirectTeleport =
false;
105 scene.DeleteSceneObject(telehubSo,
false);
108 UUID loggingInUserId = TestHelpers.ParseTail(0x2);
111 = UserAccountHelpers.CreateUserWithInventory(scene,
"Test",
"User", loggingInUserId,
"password");
113 SceneHelpers.AddScenePresence(scene, ua);
115 Assert.That(scene.GetScenePresence(loggingInUserId), Is.Not.Null);
void TestNoTelehubSpawnPoints()
Test for desired behaviour when a telehub has no spawn points
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
void TestNoTelehubSceneObject()
Test for desired behaviour when the scene object nominated as a telehub object does not exist...
Helpers for setting up scenes.