From fe471b64245f99a895d661a8952fc3c226ba6bfe Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 4 Jun 2011 02:44:53 +0100
Subject: Extend TestGiveInventoryFolder() to test giving back the freshly
received folder
---
OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Tests')
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
index 875bf4a..1703597 100644
--- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
@@ -147,8 +147,7 @@ namespace OpenSim.Tests.Common
/// null if no folder matching the path was found
public static InventoryFolderBase GetInventoryFolder(IInventoryService inventoryService, UUID userId, string path)
{
- List folders
- = InventoryArchiveUtils.FindFolderByPath(inventoryService, userId, path);
+ List folders = GetInventoryFolders(inventoryService, userId, path);
if (folders.Count != 0)
return folders[0];
@@ -157,6 +156,18 @@ namespace OpenSim.Tests.Common
}
///
+ /// Get the inventory folders that match the path name.
+ ///
+ ///
+ ///
+ ///
+ /// An empty list if no matching folders were found
+ public static List GetInventoryFolders(IInventoryService inventoryService, UUID userId, string path)
+ {
+ return InventoryArchiveUtils.FindFolderByPath(inventoryService, userId, path);
+ }
+
+ ///
/// Get the inventory item that matches the path name. If there are multiple items then only the first
/// is returned.
///
--
cgit v1.1