aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common
diff options
context:
space:
mode:
authorTeravus Ovares (Dan Olivares)2009-09-08 04:43:17 -0400
committerTeravus Ovares (Dan Olivares)2009-09-08 04:43:17 -0400
commitf0e2fd426b074ceb992124cf5eb2ebe8db5c04dd (patch)
treebea9234644b05887b4c7cc063d457b91610ed9dc /OpenSim/Tests/Common
parent* Fixes a 'take object from mega region' and rez it in a regular region.. ... (diff)
parentllRot2Euler() now returns angles -PI < angle < PI (diff)
downloadopensim-SC-f0e2fd426b074ceb992124cf5eb2ebe8db5c04dd.zip
opensim-SC-f0e2fd426b074ceb992124cf5eb2ebe8db5c04dd.tar.gz
opensim-SC-f0e2fd426b074ceb992124cf5eb2ebe8db5c04dd.tar.bz2
opensim-SC-f0e2fd426b074ceb992124cf5eb2ebe8db5c04dd.tar.xz
Merge branch 'master' of ssh://MyConnection/var/git/opensim
Diffstat (limited to 'OpenSim/Tests/Common')
-rw-r--r--OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs20
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