diff options
Diffstat (limited to 'OpenSim/Data/Tests/BasicAssetTest.cs')
-rw-r--r-- | OpenSim/Data/Tests/BasicAssetTest.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Data/Tests/BasicAssetTest.cs b/OpenSim/Data/Tests/BasicAssetTest.cs index 25aed61..770926e 100644 --- a/OpenSim/Data/Tests/BasicAssetTest.cs +++ b/OpenSim/Data/Tests/BasicAssetTest.cs | |||
@@ -66,24 +66,30 @@ namespace OpenSim.Data.Tests | |||
66 | [Test] | 66 | [Test] |
67 | public void T010_StoreSimpleAsset() | 67 | public void T010_StoreSimpleAsset() |
68 | { | 68 | { |
69 | AssetBase a1 = new AssetBase(uuid1, "asset one", (sbyte)AssetType.Texture); | 69 | AssetBase a1 = new AssetBase(uuid1, "asset one", (sbyte)AssetType.Texture, UUID.Zero.ToString()); |
70 | AssetBase a2 = new AssetBase(uuid2, "asset two", (sbyte)AssetType.Texture); | 70 | AssetBase a2 = new AssetBase(uuid2, "asset two", (sbyte)AssetType.Texture, UUID.Zero.ToString()); |
71 | AssetBase a3 = new AssetBase(uuid3, "asset three", (sbyte)AssetType.Texture); | 71 | AssetBase a3 = new AssetBase(uuid3, "asset three", (sbyte)AssetType.Texture, UUID.Zero.ToString()); |
72 | a1.Data = asset1; | 72 | a1.Data = asset1; |
73 | a2.Data = asset1; | 73 | a2.Data = asset1; |
74 | a3.Data = asset1; | 74 | a3.Data = asset1; |
75 | 75 | ||
76 | a1.Metadata.ContentType = "application/octet-stream"; | ||
77 | a2.Metadata.ContentType = "application/octet-stream"; | ||
78 | a3.Metadata.ContentType = "application/octet-stream"; | ||
79 | |||
76 | PropertyScrambler<AssetBase> scrambler = new PropertyScrambler<AssetBase>() | 80 | PropertyScrambler<AssetBase> scrambler = new PropertyScrambler<AssetBase>() |
77 | .DontScramble(x => x.Data) | 81 | .DontScramble(x => x.Data) |
78 | .DontScramble(x => x.ID) | 82 | .DontScramble(x => x.ID) |
79 | .DontScramble(x => x.FullID) | 83 | .DontScramble(x => x.FullID) |
80 | .DontScramble(x => x.Metadata.ID) | 84 | .DontScramble(x => x.Metadata.ID) |
85 | .DontScramble(x => x.Metadata.ContentType) | ||
81 | .DontScramble(x => x.Metadata.FullID); | 86 | .DontScramble(x => x.Metadata.FullID); |
82 | 87 | ||
83 | scrambler.Scramble(a1); | 88 | scrambler.Scramble(a1); |
84 | scrambler.Scramble(a2); | 89 | scrambler.Scramble(a2); |
85 | scrambler.Scramble(a3); | 90 | scrambler.Scramble(a3); |
86 | 91 | ||
92 | |||
87 | db.StoreAsset(a1); | 93 | db.StoreAsset(a1); |
88 | db.StoreAsset(a2); | 94 | db.StoreAsset(a2); |
89 | db.StoreAsset(a3); | 95 | db.StoreAsset(a3); |