From 1531035b14367cfa44986e4a733524391d58af93 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 12 Dec 2008 20:04:58 +0000 Subject: * Actually properly enable the purge folders test and correct some problems --- .../Communications/Tests/Cache/UserProfileCacheServiceTests.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Framework/Communications/Tests') diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs index 2196d25..0914bfb 100644 --- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs +++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs @@ -26,6 +26,7 @@ */ using System; +using log4net; using NUnit.Framework; using NUnit.Framework.SyntaxHelpers; using OpenMetaverse; @@ -161,8 +162,11 @@ namespace OpenSim.Framework.Communications.Tests /// /// Test purging an inventory folder /// + [Test] public void TestPurgeFolder() { + //log4net.Config.XmlConfigurator.Configure(); + IUserDataPlugin userDataPlugin = new TestUserDataPlugin(); IInventoryDataPlugin inventoryDataPlugin = new TestInventoryDataPlugin(); @@ -174,6 +178,7 @@ namespace OpenSim.Framework.Communications.Tests InventoryFolderImpl rootFolder = userInfo.RootFolder; userInfo.CreateFolder("folder1", folder1Id, (ushort)AssetType.Animation, rootFolder.ID); + Assert.That(inventoryDataPlugin.getInventoryFolder(folder1Id), Is.Not.Null); // Test purge userInfo.PurgeFolder(rootFolder.ID); -- cgit v1.1