From a576cca59e1478c4a3b963fe0ee7d64d5030a158 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 27 May 2009 14:30:33 +0000 Subject: Update svn properties. --- .../Tests/Asset/AssetServerGetHandlerTests.cs | 204 ++++++++++----------- 1 file changed, 102 insertions(+), 102 deletions(-) (limited to 'OpenSim/Server/Handlers') 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 @@ -using NUnit.Framework; -using OpenSim.Framework; -using OpenSim.Framework.Servers.HttpServer; -using OpenSim.Server.Handlers.Asset; -using OpenSim.Services.Interfaces; -using OpenSim.Tests.Common; -using OpenSim.Tests.Common.Mock; -using OpenSim.Tests.Common.Setup; - -namespace OpenSim.Server.Handlers.Tests.Asset -{ - [TestFixture] - public class AssetServerGetHandlerTests - { - private const string ASSETS_PATH = "/assets"; - - [Test] - public void TestConstructor() - { - TestHelper.InMethod(); - - AssetServerGetHandler handler = new AssetServerGetHandler( null ); - } - - [Test] - public void TestGetParams() - { - TestHelper.InMethod(); - - AssetServerGetHandler handler = new AssetServerGetHandler(null); - BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH); - } - - [Test] - public void TestSplitParams() - { - TestHelper.InMethod(); - - AssetServerGetHandler handler = new AssetServerGetHandler(null); - BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); - } - - //[Test] - //public void TestHandleNoParams() - //{ - // TestHelper.InMethod(); - - // AssetServerGetHandler handler = new AssetServerGetHandler(null); - - // BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH); - //} - - //[Test] - //public void TestHandleMalformedGuid() - //{ - // TestHelper.InMethod(); - - // AssetServerGetHandler handler = new AssetServerGetHandler(null); - - // BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH); - //} - - //[Test] - //public void TestHandleFetchMissingAsset() - //{ - // IAssetService assetDataPlugin = new TestAssetDataPlugin(); - // AssetServerGetHandler handler = new AssetServerGetHandler(assetDataPlugin); - - // GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler); - //} - - //[Test] - //public void TestHandleFetchExistingAssetData() - //{ - // AssetServerGetHandler handler; - // OSHttpResponse response; - // AssetBase asset = CreateTestEnvironment(out handler, out response); - - // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetDataTest(asset, handler, response); - //} - - //[Test] - //public void TestHandleFetchExistingAssetXml() - //{ - // AssetServerGetHandler handler; - // OSHttpResponse response; - // AssetBase asset = CreateTestEnvironment(out handler, out response); - - // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetXmlTest(asset, handler, response); - //} - - private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response) - { - AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); - - IAssetService assetDataPlugin = new TestAssetService(); - handler = new AssetServerGetHandler(assetDataPlugin); - - assetDataPlugin.Store(asset); - return asset; - } - } +using NUnit.Framework; +using OpenSim.Framework; +using OpenSim.Framework.Servers.HttpServer; +using OpenSim.Server.Handlers.Asset; +using OpenSim.Services.Interfaces; +using OpenSim.Tests.Common; +using OpenSim.Tests.Common.Mock; +using OpenSim.Tests.Common.Setup; + +namespace OpenSim.Server.Handlers.Tests.Asset +{ + [TestFixture] + public class AssetServerGetHandlerTests + { + private const string ASSETS_PATH = "/assets"; + + [Test] + public void TestConstructor() + { + TestHelper.InMethod(); + + AssetServerGetHandler handler = new AssetServerGetHandler( null ); + } + + [Test] + public void TestGetParams() + { + TestHelper.InMethod(); + + AssetServerGetHandler handler = new AssetServerGetHandler(null); + BaseRequestHandlerTestHelper.BaseTestGetParams(handler, ASSETS_PATH); + } + + [Test] + public void TestSplitParams() + { + TestHelper.InMethod(); + + AssetServerGetHandler handler = new AssetServerGetHandler(null); + BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, ASSETS_PATH); + } + + //[Test] + //public void TestHandleNoParams() + //{ + // TestHelper.InMethod(); + + // AssetServerGetHandler handler = new AssetServerGetHandler(null); + + // BaseRequestHandlerTestHelper.BaseTestHandleNoParams(handler, ASSETS_PATH); + //} + + //[Test] + //public void TestHandleMalformedGuid() + //{ + // TestHelper.InMethod(); + + // AssetServerGetHandler handler = new AssetServerGetHandler(null); + + // BaseRequestHandlerTestHelper.BaseTestHandleMalformedGuid(handler, ASSETS_PATH); + //} + + //[Test] + //public void TestHandleFetchMissingAsset() + //{ + // IAssetService assetDataPlugin = new TestAssetDataPlugin(); + // AssetServerGetHandler handler = new AssetServerGetHandler(assetDataPlugin); + + // GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler); + //} + + //[Test] + //public void TestHandleFetchExistingAssetData() + //{ + // AssetServerGetHandler handler; + // OSHttpResponse response; + // AssetBase asset = CreateTestEnvironment(out handler, out response); + + // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetDataTest(asset, handler, response); + //} + + //[Test] + //public void TestHandleFetchExistingAssetXml() + //{ + // AssetServerGetHandler handler; + // OSHttpResponse response; + // AssetBase asset = CreateTestEnvironment(out handler, out response); + + // GetAssetStreamHandlerTestHelpers.BaseFetchExistingAssetXmlTest(asset, handler, response); + //} + + private static AssetBase CreateTestEnvironment(out AssetServerGetHandler handler, out OSHttpResponse response) + { + AssetBase asset = GetAssetStreamHandlerTestHelpers.CreateCommonTestResources(out response); + + IAssetService assetDataPlugin = new TestAssetService(); + handler = new AssetServerGetHandler(assetDataPlugin); + + assetDataPlugin.Store(asset); + return asset; + } + } } \ No newline at end of file -- cgit v1.1