29 using System.Collections.Generic;
31 using System.Reflection;
32 using System.Threading;
34 using NUnit.Framework;
37 using OpenSim.Framework;
38 using OpenSim.Framework.Serialization;
39 using OpenSim.Framework.Serialization.External;
40 using OpenSim.Region.CoreModules.Avatar.Inventory.Archiver;
41 using OpenSim.Region.CoreModules.Framework.InventoryAccess;
42 using OpenSim.Region.Framework.Scenes;
43 using OpenSim.Region.Framework.Scenes.Serialization;
44 using OpenSim.Services.Interfaces;
45 using OpenSim.Tests.Common;
47 namespace OpenSim.
Region.CoreModules.Framework.InventoryAccess.Tests
54 protected UUID m_userId = UUID.Parse(
"00000000-0000-0000-0000-000000000020");
64 IConfigSource config =
new IniConfigSource();
65 config.AddConfig(
"Modules");
66 config.Configs[
"Modules"].Set(
"InventoryAccessModule",
"BasicInventoryAccessModule");
69 m_scene = sceneHelpers.SetupScene();
70 SceneHelpers.SetupSceneModules(m_scene, config, m_iam);
73 string userFirstName =
"Jock";
74 string userLastName =
"Stirrup";
75 string userPassword =
"troll";
76 UserAccountHelpers.CreateUserWithInventory(m_scene, userFirstName, userLastName, m_userId, userPassword);
79 acd.AgentID = m_userId;
145 TestHelpers.InMethod();
149 SceneObjectGroup object1 = SceneHelpers.CreateSceneObject(1, m_userId,
"My Little Dog Object", 0x40);
151 UUID asset1Id = UUID.Parse(
"00000000-0000-0000-0000-000000000060");
152 AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);
153 m_scene.AssetService.Store(asset1);
156 UUID item1Id = UUID.Parse(
"00000000-0000-0000-0000-000000000080");
157 string item1Name =
"My Little Dog";
159 item1.Name = item1Name;
160 item1.AssetID = asset1.FullID;
163 = InventoryArchiveUtils.FindFoldersByPath(m_scene.InventoryService, m_userId,
"Objects")[0];
164 item1.Folder = objsFolder.ID;
165 m_scene.AddInventoryItem(item1);
169 m_tc, item1Id, Vector3.Zero, Vector3.Zero, UUID.Zero, 1,
false,
false,
false, UUID.Zero,
false);
171 Assert.That(so, Is.Not.Null);
174 Assert.That(retrievedPart, Is.Not.Null);
BasicInventoryAccessModule m_iam
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
Asset class. All Assets are reference by this class or a class derived from this class ...
Circuit data for an agent. Connection information shared between regions that accept UDP connections ...
Inventory Item - contains all the properties associated with an individual inventory piece...
Helpers for setting up scenes.
void TestRezCoalescedObject()