diff options
author | Justin Clark-Casey (justincc) | 2011-04-14 20:35:00 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-04-14 20:35:00 +0100 |
commit | 55387542eaae8ab27c4709ae5b923d9d2d2a4431 (patch) | |
tree | e8f192e5b62bad97fad396661eb72e4cc09d6591 /OpenSim/Region/CoreModules/Avatar | |
parent | simplify TestSaveItemToIarV0_1() (diff) | |
download | opensim-SC-55387542eaae8ab27c4709ae5b923d9d2d2a4431.zip opensim-SC-55387542eaae8ab27c4709ae5b923d9d2d2a4431.tar.gz opensim-SC-55387542eaae8ab27c4709ae5b923d9d2d2a4431.tar.bz2 opensim-SC-55387542eaae8ab27c4709ae5b923d9d2d2a4431.tar.xz |
simplify InventoryArchiveTestCase setup
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiveTestCase.cs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiveTestCase.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiveTestCase.cs index e5127a0..7ee6f28 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiveTestCase.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiveTestCase.cs | |||
@@ -105,24 +105,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
105 | MemoryStream archiveWriteStream = new MemoryStream(); | 105 | MemoryStream archiveWriteStream = new MemoryStream(); |
106 | 106 | ||
107 | // Create asset | 107 | // Create asset |
108 | SceneObjectGroup object1; | 108 | UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040"); |
109 | SceneObjectPart part1; | 109 | SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, ownerId, "Ray Gun Object", 0x50); |
110 | { | ||
111 | string partName = "Ray Gun Object"; | ||
112 | UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040"); | ||
113 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere(); | ||
114 | Vector3 groupPosition = new Vector3(10, 20, 30); | ||
115 | Quaternion rotationOffset = new Quaternion(20, 30, 40, 50); | ||
116 | Vector3 offsetPosition = new Vector3(5, 10, 15); | ||
117 | |||
118 | part1 | ||
119 | = new SceneObjectPart( | ||
120 | ownerId, shape, groupPosition, rotationOffset, offsetPosition); | ||
121 | part1.Name = partName; | ||
122 | |||
123 | object1 = new SceneObjectGroup(part1); | ||
124 | scene.AddNewSceneObject(object1, false); | ||
125 | } | ||
126 | 110 | ||
127 | UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060"); | 111 | UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060"); |
128 | AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1); | 112 | AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1); |