diff options
author | Jeff Ames | 2009-05-27 14:30:33 +0000 |
---|---|---|
committer | Jeff Ames | 2009-05-27 14:30:33 +0000 |
commit | a576cca59e1478c4a3b963fe0ee7d64d5030a158 (patch) | |
tree | 97266b6ab58b426ab76bd534f12f7ca79a74d872 /OpenSim/Server/Handlers/Tests/Asset | |
parent | Revert "* Added IntegrationTest Attribute and tagged the ODETestClass" (diff) | |
download | opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.zip opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.tar.gz opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.tar.bz2 opensim-SC_OLD-a576cca59e1478c4a3b963fe0ee7d64d5030a158.tar.xz |
Update svn properties.
Diffstat (limited to 'OpenSim/Server/Handlers/Tests/Asset')
-rw-r--r-- | OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs | 204 |
1 files changed, 102 insertions, 102 deletions
diff --git a/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs b/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs index 3636972..d79192e 100644 --- a/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs +++ b/OpenSim/Server/Handlers/Tests/Asset/AssetServerGetHandlerTests.cs | |||
@@ -1,103 +1,103 @@ | |||
1 | using NUnit.Framework; | 1 | using NUnit.Framework; |
2 | using OpenSim.Framework; | 2 | using OpenSim.Framework; |
3 | using OpenSim.Framework.Servers.HttpServer; | 3 | using OpenSim.Framework.Servers.HttpServer; |
4 | using OpenSim.Server.Handlers.Asset; | 4 | using OpenSim.Server.Handlers.Asset; |
5 | using OpenSim.Services.Interfaces; | 5 | using OpenSim.Services.Interfaces; |
6 | using OpenSim.Tests.Common; | 6 | using OpenSim.Tests.Common; |
7 | using OpenSim.Tests.Common.Mock; | 7 | using OpenSim.Tests.Common.Mock; |
8 | using OpenSim.Tests.Common.Setup; | 8 | using OpenSim.Tests.Common.Setup; |
9 | 9 | ||
10 | namespace OpenSim.Server.Handlers.Tests.Asset | 10 | namespace OpenSim.Server.Handlers.Tests.Asset |
11 | { | 11 | { |
12 | [TestFixture] | 12 | [TestFixture] |
13 | public class AssetServerGetHandlerTests | 13 | public class AssetServerGetHandlerTests |
14 | { | 14 | { |
15 | private const string ASSETS_PATH = "/assets"; | 15 | private const string ASSETS_PATH = "/assets"; |
16 | 16 | ||
17 | [Test] | 17 | [Test] |
18 | public void TestConstructor() | 18 | public void TestConstructor() |
19 | { | 19 | { |
20 | TestHelper.InMethod(); | 20 | TestHelper.InMethod(); |
21 | 21 | ||
22 | AssetServerGetHandler handler = new AssetServerGetHandler( null ); | 22 | AssetServerGetHandler handler = new AssetServerGetHandler( null ); |
23 | } | 23 | } |
24 | 24 | ||
25 | [Test] | 25 | [Test] |
26 | public void TestGetParams() | 26 | public void TestGetParams() |
27 | { | 27 | { |
28 | TestHelper.InMethod(); | 28 | TestHelper.InMethod(); |
29 | 29 | ||
30 | AssetServerGetHandler handler = new AssetServerGetHandler(null); | 30 | AssetServerGetHandler handler = new AssetServerGetHandler(null); |
31 | BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH); | 31 | BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH); |
32 | } | 32 | } |
33 | 33 | ||
34 | [Test] | 34 | [Test] |
35 | public void TestSplitParams() | 35 | public void TestSplitParams() |
36 | { | 36 | { |
37 | TestHelper.InMethod(); | 37 | TestHelper.InMethod(); |
38 | 38 | ||
39 | AssetServerGetHandler handler = new AssetServerGetHandler(null); | 39 | AssetServerGetHandler handler = new AssetServerGetHandler(null); |
40 | BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); | 40 | BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); |
41 | } | 41 | } |
42 | 42 | ||
43 | //[Test] | 43 | //[Test] |
44 | //public void TestHandleNoParams() | 44 | //public void TestHandleNoParams() |
45 | //{ | 45 | //{ |
46 | // TestHelper.InMethod(); | 46 | // TestHelper.InMethod(); |
47 | 47 | ||
48 | // AssetServerGetHandler handler = new AssetServerGetHandler(null); | 48 | // AssetServerGetHandler handler = new AssetServerGetHandler(null); |
49 | 49 | ||
50 | // BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH); | 50 | // BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH); |
51 | //} | 51 | //} |
52 | 52 | ||
53 | //[Test] | 53 | //[Test] |
54 | //public void TestHandleMalformedGuid() | 54 | //public void TestHandleMalformedGuid() |
55 | //{ | 55 | //{ |
56 | // TestHelper.InMethod(); | 56 | // TestHelper.InMethod(); |
57 | 57 | ||
58 | // AssetServerGetHandler handler = new AssetServerGetHandler(null); | 58 | // AssetServerGetHandler handler = new AssetServerGetHandler(null); |
59 | 59 | ||
60 | // BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH); | 60 | // BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH); |
61 | //} | 61 | //} |
62 | 62 | ||
63 | //[Test] | 63 | //[Test] |
64 | //public void TestHandleFetchMissingAsset() | 64 | //public void TestHandleFetchMissingAsset() |
65 | //{ | 65 | //{ |
66 | // IAssetService assetDataPlugin = new TestAssetDataPlugin(); | 66 | // IAssetService assetDataPlugin = new TestAssetDataPlugin(); |
67 | // AssetServerGetHandler handler = new AssetServerGetHandler(assetDataPlugin); | 67 | // AssetServerGetHandler handler = new AssetServerGetHandler(assetDataPlugin); |
68 | 68 | ||
69 | // GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler); | 69 | // GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler); |
70 | //} | 70 | //} |
71 | 71 | ||
72 | //[Test] | 72 | //[Test] |
73 | //public void TestHandleFetchExistingAssetData() | 73 | //public void TestHandleFetchExistingAssetData() |
74 | //{ | 74 | //{ |
75 | // AssetServerGetHandler handler; | 75 | // AssetServerGetHandler handler; |
76 | // OSHttpResponse response; | 76 | // OSHttpResponse response; |
77 | // AssetBase asset = CreateTestEnvironment(out handler, out response); | 77 | // AssetBase asset = CreateTestEnvironment(out handler, out response); |
78 | 78 | ||
79 | // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetDataTest(asset, handler, response); | 79 | // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetDataTest(asset, handler, response); |
80 | //} | 80 | //} |
81 | 81 | ||
82 | //[Test] | 82 | //[Test] |
83 | //public void TestHandleFetchExistingAssetXml() | 83 | //public void TestHandleFetchExistingAssetXml() |
84 | //{ | 84 | //{ |
85 | // AssetServerGetHandler handler; | 85 | // AssetServerGetHandler handler; |
86 | // OSHttpResponse response; | 86 | // OSHttpResponse response; |
87 | // AssetBase asset = CreateTestEnvironment(out handler, out response); | 87 | // AssetBase asset = CreateTestEnvironment(out handler, out response); |
88 | 88 | ||
89 | // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetXmlTest(asset, handler, response); | 89 | // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetXmlTest(asset, handler, response); |
90 | //} | 90 | //} |
91 | 91 | ||
92 | private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response) | 92 | private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response) |
93 | { | 93 | { |
94 | AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); | 94 | AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); |
95 | 95 | ||
96 | IAssetService assetDataPlugin = new TestAssetService(); | 96 | IAssetService assetDataPlugin = new TestAssetService(); |
97 | handler = new AssetServerGetHandler(assetDataPlugin); | 97 | handler = new AssetServerGetHandler(assetDataPlugin); |
98 | 98 | ||
99 | assetDataPlugin.Store(asset); | 99 | assetDataPlugin.Store(asset); |
100 | return asset; | 100 | return asset; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | } \ No newline at end of file | 103 | } \ No newline at end of file |