aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/Tests
diff options
context:
space:
mode:
authorJeff Ames2009-05-11 15:14:15 +0000
committerJeff Ames2009-05-11 15:14:15 +0000
commit516440367680ce43417442bbf9570eaadd503235 (patch)
tree30f84174c08638681d4926a0e7773e572ec645f2 /OpenSim/Framework/Servers/Tests
parentadding code to check for old-style responses ("True") (diff)
downloadopensim-SC_OLD-516440367680ce43417442bbf9570eaadd503235.zip
opensim-SC_OLD-516440367680ce43417442bbf9570eaadd503235.tar.gz
opensim-SC_OLD-516440367680ce43417442bbf9570eaadd503235.tar.bz2
opensim-SC_OLD-516440367680ce43417442bbf9570eaadd503235.tar.xz
Update svn properties.
Diffstat (limited to 'OpenSim/Framework/Servers/Tests')
-rw-r--r--OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs144
1 files changed, 72 insertions, 72 deletions
diff --git a/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs b/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
index aa97f62..dbb877d 100644
--- a/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
+++ b/OpenSim/Framework/Servers/Tests/CachedGetAssetStreamHandlerTests.cs
@@ -1,72 +1,72 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using NUnit.Framework; 4using NUnit.Framework;
5using OpenSim.Data; 5using OpenSim.Data;
6using OpenSim.Framework.Servers.HttpServer; 6using OpenSim.Framework.Servers.HttpServer;
7using OpenSim.Tests.Common; 7using OpenSim.Tests.Common;
8 8
9namespace OpenSim.Framework.Servers.Tests 9namespace OpenSim.Framework.Servers.Tests
10{ 10{
11 [TestFixture] 11 [TestFixture]
12 public class CachedGetAssetStreamHandlerTests 12 public class CachedGetAssetStreamHandlerTests
13 { 13 {
14 private const string ASSETS_PATH = "/assets"; 14 private const string ASSETS_PATH = "/assets";
15 15
16 [Test] 16 [Test]
17 public void TestConstructor() 17 public void TestConstructor()
18 { 18 {
19 TestHelper.InMethod(); 19 TestHelper.InMethod();
20 20
21 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); 21 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null);
22 } 22 }
23 23
24 [Test] 24 [Test]
25 public void TestGetParams() 25 public void TestGetParams()
26 { 26 {
27 TestHelper.InMethod(); 27 TestHelper.InMethod();
28 28
29 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); 29 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null);
30 BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH); 30 BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH);
31 } 31 }
32 32
33 [Test] 33 [Test]
34 public void TestSplitParams() 34 public void TestSplitParams()
35 { 35 {
36 TestHelper.InMethod(); 36 TestHelper.InMethod();
37 37
38 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); 38 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null);
39 BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); 39 BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH);
40 } 40 }
41 41
42 [Test] 42 [Test]
43 public void TestHandleNoParams() 43 public void TestHandleNoParams()
44 { 44 {
45 TestHelper.InMethod(); 45 TestHelper.InMethod();
46 46
47 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); 47 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null);
48 48
49 BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH); 49 BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH);
50 } 50 }
51 51
52 [Test] 52 [Test]
53 public void TestHandleMalformedGuid() 53 public void TestHandleMalformedGuid()
54 { 54 {
55 TestHelper.InMethod(); 55 TestHelper.InMethod();
56 56
57 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); 57 CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null);
58 58
59 BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH); 59 BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH);
60 } 60 }
61 61
62 //[Test] 62 //[Test]
63 //public void TestHandleFetchMissingAsset() 63 //public void TestHandleFetchMissingAsset()
64 //{ 64 //{
65 65
66 // byte[] emptyResult = new byte[] { }; 66 // byte[] emptyResult = new byte[] { };
67 // CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null); 67 // CachedGetAssetStreamHandler handler = new CachedGetAssetStreamHandler(null);
68 68
69 // Assert.AreEqual(new string[] { }, handler.Handle("/assets/badGuid", null, null, null), "Failed on bad guid."); 69 // Assert.AreEqual(new string[] { }, handler.Handle("/assets/badGuid", null, null, null), "Failed on bad guid.");
70 //} 70 //}
71 } 71 }
72} 72}