* Fix unit tests so that they correctly handle 404 missing asset response

* I didn't think there were tests in this area - my bad
This commit is contained in:
Justin Clarke Casey
2009-06-05 17:03:44 +00:00
parent 593942b195
commit 87097f2484
3 changed files with 14 additions and 9 deletions

View File

@@ -94,10 +94,11 @@ namespace OpenSim.Framework.Servers.Tests
[Test]
public void TestHandleFetchMissingAsset()
{
IAssetDataPlugin assetDataPlugin = new TestAssetDataPlugin();
GetAssetStreamHandler handler = new GetAssetStreamHandler(assetDataPlugin);
GetAssetStreamHandler handler;
OSHttpResponse response;
AssetBase asset = CreateTestEnvironment(out handler, out response);
GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler);
GetAssetStreamHandlerTestHelpers.BaseFetchMissingAsset(handler, response);
}
[Test]