From 304c78bbbbc9a176d70d2967a3f703f2e545565c Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sun, 6 Sep 2009 19:30:03 +0100 Subject: Temporarily re-enable save iar test by manually insert the item into the old cache during the test --- OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Tests/Common') diff --git a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs index ce116f2..a444d91 100644 --- a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs +++ b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs @@ -154,7 +154,13 @@ namespace OpenSim.Tests.Common.Mock m_folders.Remove(folderId); } - public void addInventoryItem(InventoryItemBase item) { m_items[item.ID] = item; } + public void addInventoryItem(InventoryItemBase item) + { + m_log.DebugFormat( + "[MOCK INV DB]: Adding inventory item {0} {1} in {2}", item.Name, item.ID, item.Folder); + + m_items[item.ID] = item; + } public void updateInventoryItem(InventoryItemBase item) { addInventoryItem(item); } -- cgit v1.1 From 881051c8ccef7b49031d0f9a087390336ecc53b5 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sun, 6 Sep 2009 21:14:42 +0100 Subject: Convert iar write request to use inventory service requests rather than cache --- OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'OpenSim/Tests/Common') diff --git a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs index a444d91..daef38b 100644 --- a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs +++ b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs @@ -84,7 +84,17 @@ namespace OpenSim.Tests.Common.Mock public List getInventoryInFolder(UUID folderID) { - return new List(); + m_log.DebugFormat("[MOCK INV DB]: Getting items in folder {0}", folderID); + + List items = new List(); + + foreach (InventoryItemBase item in m_items.Values) + { + if (item.Folder == folderID) + items.Add(item); + } + + return items; } public List getUserRootFolders(UUID user) { return null; } -- cgit v1.1