29 using System.Collections.Generic;
30 using System.Reflection;
32 using NUnit.Framework;
34 using OpenSim.Framework;
35 using OpenSim.Region.CoreModules.Avatar.InstantMessage;
36 using OpenSim.Region.CoreModules.World.Permissions;
37 using OpenSim.Region.Framework.Interfaces;
38 using OpenSim.Region.Framework.Scenes;
39 using OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups;
40 using OpenSim.Tests.Common;
42 namespace OpenSim.
Region.Framework.Scenes.Tests
54 TestHelpers.InMethod();
57 UUID userId = UUID.Parse(
"10000000-0000-0000-0000-000000000001");
60 IConfigSource configSource =
new IniConfigSource();
62 IConfig startupConfig = configSource.AddConfig(
"Startup");
63 startupConfig.Set(
"serverside_object_permissions",
true);
65 IConfig groupsConfig = configSource.AddConfig(
"Groups");
66 groupsConfig.Set(
"Enabled",
true);
67 groupsConfig.Set(
"Module",
"GroupsModule");
68 groupsConfig.Set(
"DebugEnabled",
true);
70 SceneHelpers.SetupSceneModules(
71 scene, configSource,
new object[]
76 IClientAPI client = SceneHelpers.AddScenePresence(scene, userId).ControllingClient;
80 groupsModule.CreateGroup(client,
"group1",
"To boldly go",
true, UUID.Zero, 5,
true,
true,
true);
void TestShareWithGroup()
Test share with group object functionality
Helpers for setting up scenes.