aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs
blob: b9ce4308b0c06a05d21245e097fe0106f1d9585d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using OpenSim.Tests.Common;

namespace OpenSim.Framework.Servers.HttpServer.Tests
{
    [TestFixture]
    public class BaseRequestHandlerTests
    {
        private const string BASE_PATH = "/testpath";

        private class BaseRequestHandlerImpl : BaseRequestHandler
        {
            public BaseRequestHandlerImpl(string httpMethod, string path) : base(httpMethod, path)
            {
            }
        }

        [Test]
        public void TestConstructor()
        {
            BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl( null, null );
        }

        [Test]
        public void TestGetParams()
        {
            BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl(null, BASE_PATH);

            BaseRequestHandlerTestHelper.BaseTestGetParams(handler, BASE_PATH);
        }

        [Test]
        public void TestSplitParams()
        {
            BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl(null, BASE_PATH);

            BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, BASE_PATH);
        }
    }
}