diff options
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r-- | OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs index ce116f2..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 | |||
84 | 84 | ||
85 | public List<InventoryItemBase> getInventoryInFolder(UUID folderID) | 85 | public List<InventoryItemBase> getInventoryInFolder(UUID folderID) |
86 | { | 86 | { |
87 | return new List<InventoryItemBase>(); | 87 | m_log.DebugFormat("[MOCK INV DB]: Getting items in folder {0}", folderID); |
88 | |||
89 | List<InventoryItemBase> items = new List<InventoryItemBase>(); | ||
90 | |||
91 | foreach (InventoryItemBase item in m_items.Values) | ||
92 | { | ||
93 | if (item.Folder == folderID) | ||
94 | items.Add(item); | ||
95 | } | ||
96 | |||
97 | return items; | ||
88 | } | 98 | } |
89 | 99 | ||
90 | public List<InventoryFolderBase> getUserRootFolders(UUID user) { return null; } | 100 | public List<InventoryFolderBase> getUserRootFolders(UUID user) { return null; } |
@@ -154,7 +164,13 @@ namespace OpenSim.Tests.Common.Mock | |||
154 | m_folders.Remove(folderId); | 164 | m_folders.Remove(folderId); |
155 | } | 165 | } |
156 | 166 | ||
157 | public void addInventoryItem(InventoryItemBase item) { m_items[item.ID] = item; } | 167 | public void addInventoryItem(InventoryItemBase item) |
168 | { | ||
169 | m_log.DebugFormat( | ||
170 | "[MOCK INV DB]: Adding inventory item {0} {1} in {2}", item.Name, item.ID, item.Folder); | ||
171 | |||
172 | m_items[item.ID] = item; | ||
173 | } | ||
158 | 174 | ||
159 | public void updateInventoryItem(InventoryItemBase item) { addInventoryItem(item); } | 175 | public void updateInventoryItem(InventoryItemBase item) { addInventoryItem(item); } |
160 | 176 | ||