diff options
author | Justin Clark-Casey (justincc) | 2009-11-12 19:15:08 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2009-11-12 19:15:08 +0000 |
commit | e2b1fb8ff9242b112232446eee4642a2f090f0e3 (patch) | |
tree | f131b4082369d9a8192a12ffc3ca474e58a3a0ec /OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs | |
parent | refactor some test asset creation into a helper class (diff) | |
download | opensim-SC-e2b1fb8ff9242b112232446eee4642a2f090f0e3.zip opensim-SC-e2b1fb8ff9242b112232446eee4642a2f090f0e3.tar.gz opensim-SC-e2b1fb8ff9242b112232446eee4642a2f090f0e3.tar.bz2 opensim-SC-e2b1fb8ff9242b112232446eee4642a2f090f0e3.tar.xz |
refactor: extract another test asset helper method
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs b/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs index dc98550..b68a044 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs | |||
@@ -34,6 +34,7 @@ using OpenSim.Framework; | |||
34 | using OpenSim.Region.Framework.Scenes; | 34 | using OpenSim.Region.Framework.Scenes; |
35 | using OpenSim.Services.Interfaces; | 35 | using OpenSim.Services.Interfaces; |
36 | using OpenSim.Tests.Common; | 36 | using OpenSim.Tests.Common; |
37 | using OpenSim.Tests.Common.Setup; | ||
37 | using OpenSim.Tests.Common.Mock; | 38 | using OpenSim.Tests.Common.Mock; |
38 | 39 | ||
39 | namespace OpenSim.Region.Framework.Scenes.Tests | 40 | namespace OpenSim.Region.Framework.Scenes.Tests |
@@ -55,11 +56,9 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
55 | public void TestCorruptAsset() | 56 | public void TestCorruptAsset() |
56 | { | 57 | { |
57 | TestHelper.InMethod(); | 58 | TestHelper.InMethod(); |
58 | 59 | ||
59 | UUID corruptAssetUuid = UUID.Parse("00000000-0000-0000-0000-000000000666"); | 60 | UUID corruptAssetUuid = UUID.Parse("00000000-0000-0000-0000-000000000666"); |
60 | AssetBase corruptAsset = new AssetBase(corruptAssetUuid, corruptAssetUuid.ToString(), (sbyte)AssetType.Object); | 61 | AssetBase corruptAsset = AssetHelpers.CreateAsset(corruptAssetUuid, "CORRUPT ASSET"); |
61 | corruptAsset.Data = Encoding.ASCII.GetBytes("CORRUPT ASSET"); | ||
62 | |||
63 | m_assetService.Store(corruptAsset); | 62 | m_assetService.Store(corruptAsset); |
64 | 63 | ||
65 | IDictionary<UUID, int> foundAssetUuids = new Dictionary<UUID, int>(); | 64 | IDictionary<UUID, int> foundAssetUuids = new Dictionary<UUID, int>(); |