diff --git a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
index f5db0f778c..efeb9738c7 100644
--- a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
@@ -56,17 +56,17 @@ namespace OpenSim.Tests.Common
return CreateAsset(id, AssetType.Notecard, "hello", UUID.Random());
}
- ///
- /// Create and store a notecard asset with a random uuid and dummy text.
- ///
- /// /param>
- ///
- public static AssetBase CreateNotecardAsset(Scene scene, UUID creatorId)
- {
- AssetBase asset = CreateAsset(UUID.Random(), AssetType.Notecard, "hello", creatorId);
- scene.AssetService.Store(asset);
- return asset;
- }
+// ///
+// /// Create and store a notecard asset with a random uuid and dummy text.
+// ///
+// /// /param>
+// ///
+// public static AssetBase CreateNotecardAsset(Scene scene, UUID creatorId)
+// {
+// AssetBase asset = CreateAsset(UUID.Random(), AssetType.Notecard, "hello", creatorId);
+// scene.AssetService.Store(asset);
+// return asset;
+// }
///
/// Create an asset from the given object.
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
index 0de38c2804..fdc60d8f39 100644
--- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
@@ -86,11 +86,18 @@ namespace OpenSim.Tests.Common
AssetBase asset = null;
if (type == InventoryType.Notecard)
- asset = AssetHelpers.CreateNotecardAsset(scene, userId);
+ {
+ asset = AssetHelpers.CreateNotecardAsset();
+ asset.CreatorID = userId.ToString();
+ }
else if (type == InventoryType.Object)
+ {
asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId));
+ }
else
+ {
throw new Exception(string.Format("Inventory type {0} not supported", type));
+ }
scene.AssetService.Store(asset);