diff options
author | Melanie | 2011-10-25 03:18:29 +0100 |
---|---|---|
committer | Melanie | 2011-10-25 03:18:29 +0100 |
commit | 56f3da7b5a1af106b776dee3151cb350abb0e8f8 (patch) | |
tree | 40425b2a00e9fda440384cb1c1e48f129e133f03 /OpenSim/Tests | |
parent | Merge commit 'a1f05a289dd845edb7e3d163b84ceecc85374427' into bigmerge (diff) | |
parent | refactor: rename some AssetHelpers.CreateAsset() methods to CreateNotecardAss... (diff) | |
download | opensim-SC-56f3da7b5a1af106b776dee3151cb350abb0e8f8.zip opensim-SC-56f3da7b5a1af106b776dee3151cb350abb0e8f8.tar.gz opensim-SC-56f3da7b5a1af106b776dee3151cb350abb0e8f8.tar.bz2 opensim-SC-56f3da7b5a1af106b776dee3151cb350abb0e8f8.tar.xz |
Merge commit '9b3bbedeea5c6ea2421b36e5f0e23ab798870ba0' into bigmerge
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/AssetHelpers.cs | 8 | ||||
-rw-r--r-- | OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs index 99eb124..4839bcb 100644 --- a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs | |||
@@ -40,9 +40,9 @@ namespace OpenSim.Tests.Common | |||
40 | /// Create a notecard asset with a random uuids and dummy text. | 40 | /// Create a notecard asset with a random uuids and dummy text. |
41 | /// </summary> | 41 | /// </summary> |
42 | /// <returns></returns> | 42 | /// <returns></returns> |
43 | public static AssetBase CreateAsset() | 43 | public static AssetBase CreateNotecardAsset() |
44 | { | 44 | { |
45 | return CreateAsset(UUID.Random()); | 45 | return CreateNotecardAsset(UUID.Random()); |
46 | } | 46 | } |
47 | 47 | ||
48 | /// <summary> | 48 | /// <summary> |
@@ -50,7 +50,7 @@ namespace OpenSim.Tests.Common | |||
50 | /// </summary> | 50 | /// </summary> |
51 | /// <param name="creatorId">/param> | 51 | /// <param name="creatorId">/param> |
52 | /// <returns></returns> | 52 | /// <returns></returns> |
53 | public static AssetBase CreateAsset(UUID id) | 53 | public static AssetBase CreateNotecardAsset(UUID id) |
54 | { | 54 | { |
55 | return CreateAsset(id, AssetType.Notecard, "hello", UUID.Random()); | 55 | return CreateAsset(id, AssetType.Notecard, "hello", UUID.Random()); |
56 | } | 56 | } |
@@ -60,7 +60,7 @@ namespace OpenSim.Tests.Common | |||
60 | /// </summary> | 60 | /// </summary> |
61 | /// <param name="creatorId">/param> | 61 | /// <param name="creatorId">/param> |
62 | /// <returns></returns> | 62 | /// <returns></returns> |
63 | public static AssetBase CreateAsset(Scene scene, UUID creatorId) | 63 | public static AssetBase CreateNotecardAsset(Scene scene, UUID creatorId) |
64 | { | 64 | { |
65 | AssetBase asset = CreateAsset(UUID.Random(), AssetType.Notecard, "hello", creatorId); | 65 | AssetBase asset = CreateAsset(UUID.Random(), AssetType.Notecard, "hello", creatorId); |
66 | scene.AssetService.Store(asset); | 66 | scene.AssetService.Store(asset); |
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs index ceb7905..0de38c2 100644 --- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | |||
@@ -86,7 +86,7 @@ namespace OpenSim.Tests.Common | |||
86 | AssetBase asset = null; | 86 | AssetBase asset = null; |
87 | 87 | ||
88 | if (type == InventoryType.Notecard) | 88 | if (type == InventoryType.Notecard) |
89 | asset = AssetHelpers.CreateAsset(scene, userId); | 89 | asset = AssetHelpers.CreateNotecardAsset(scene, userId); |
90 | else if (type == InventoryType.Object) | 90 | else if (type == InventoryType.Object) |
91 | asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); | 91 | asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); |
92 | else | 92 | else |