aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/Tests')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs b/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs
new file mode 100644
index 0000000..14998c5
--- /dev/null
+++ b/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs
@@ -0,0 +1,43 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using NUnit.Framework;
5using OpenSim.Tests.Common;
6
7namespace OpenSim.Framework.Servers.HttpServer.Tests
8{
9 [TestFixture]
10 public class BaseRequestHandlerTests
11 {
12 private const string BASE_PATH = "/testpath";
13
14 private class BaseRequestHandlerImpl : BaseRequestHandler
15 {
16 public BaseRequestHandlerImpl(string httpMethod, string path) : base(httpMethod, path)
17 {
18 }
19 }
20
21 [Test]
22 public void TestConstructor()
23 {
24 BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl( null, null );
25 }
26
27 [Test]
28 public void TestGetParams()
29 {
30 BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl(null, BASE_PATH);
31
32 BaseRequestHandlerTestHelper.BaseTestGetParams(handler, BASE_PATH);
33 }
34
35 [Test]
36 public void TestSplitParams()
37 {
38 BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl(null, BASE_PATH);
39
40 BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, BASE_PATH);
41 }
42 }
43}