diff options
author | Melanie | 2011-10-25 03:18:38 +0100 |
---|---|---|
committer | Melanie | 2011-10-25 03:18:38 +0100 |
commit | da805d0cce07776e98ce3013acfa5b53b99e4324 (patch) | |
tree | f7754702489918bb7eae721edb687b8e9488fc78 /OpenSim/Tests/Common | |
parent | Merge commit '9b3bbedeea5c6ea2421b36e5f0e23ab798870ba0' into bigmerge (diff) | |
parent | encode notecard assets in proper format for tests, rather than just using wha... (diff) | |
download | opensim-SC-da805d0cce07776e98ce3013acfa5b53b99e4324.zip opensim-SC-da805d0cce07776e98ce3013acfa5b53b99e4324.tar.gz opensim-SC-da805d0cce07776e98ce3013acfa5b53b99e4324.tar.bz2 opensim-SC-da805d0cce07776e98ce3013acfa5b53b99e4324.tar.xz |
Merge commit '5d7eaedbebd408d948321dc474927fc72d3d98c5' into bigmerge
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/AssetHelpers.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs index 4839bcb..aecd77e 100644 --- a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System.Text; | 28 | using System.Text; |
29 | using OpenMetaverse; | 29 | using OpenMetaverse; |
30 | using OpenMetaverse.Assets; | ||
30 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
31 | using OpenSim.Region.Framework.Scenes; | 32 | using OpenSim.Region.Framework.Scenes; |
32 | using OpenSim.Region.Framework.Scenes.Serialization; | 33 | using OpenSim.Region.Framework.Scenes.Serialization; |
@@ -130,7 +131,11 @@ namespace OpenSim.Tests.Common | |||
130 | /// </summary> | 131 | /// </summary> |
131 | public static AssetBase CreateAsset(UUID assetUuid, AssetType assetType, string data, UUID creatorID) | 132 | public static AssetBase CreateAsset(UUID assetUuid, AssetType assetType, string data, UUID creatorID) |
132 | { | 133 | { |
133 | return CreateAsset(assetUuid, assetType, Encoding.ASCII.GetBytes(data), creatorID); | 134 | AssetNotecard anc = new AssetNotecard(); |
135 | anc.BodyText = "data"; | ||
136 | anc.Encode(); | ||
137 | |||
138 | return CreateAsset(assetUuid, assetType, anc.AssetData, creatorID); | ||
134 | } | 139 | } |
135 | 140 | ||
136 | /// <summary> | 141 | /// <summary> |