aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-12 20:04:58 +0000
committerJustin Clarke Casey2008-12-12 20:04:58 +0000
commit1531035b14367cfa44986e4a733524391d58af93 (patch)
tree304a1a9295bdd2e094a5c4d28c52d5b27f75e27d /OpenSim/Tests
parentAdd missing scene reference. Fixes a NRE. SimpleModule now works again (sort ... (diff)
downloadopensim-SC_OLD-1531035b14367cfa44986e4a733524391d58af93.zip
opensim-SC_OLD-1531035b14367cfa44986e4a733524391d58af93.tar.gz
opensim-SC_OLD-1531035b14367cfa44986e4a733524391d58af93.tar.bz2
opensim-SC_OLD-1531035b14367cfa44986e4a733524391d58af93.tar.xz
* Actually properly enable the purge folders test and correct some problems
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r--OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs21
1 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs
index 52b469b..808c212 100644
--- a/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/TestInventoryDataPlugin.cs
@@ -87,7 +87,19 @@ namespace OpenSim.Tests.Common.Mock
87 return folder; 87 return folder;
88 } 88 }
89 89
90 public List<InventoryFolderBase> getInventoryFolders(UUID parentID) { return null; } 90 public List<InventoryFolderBase> getInventoryFolders(UUID parentID)
91 {
92 List<InventoryFolderBase> folders = new List<InventoryFolderBase>();
93
94 foreach (InventoryFolderBase folder in m_folders.Values)
95 {
96 if (folder.ParentID == parentID)
97 folders.Add(folder);
98 }
99
100 return folders;
101 }
102
91 public InventoryItemBase getInventoryItem(UUID item) { return null; } 103 public InventoryItemBase getInventoryItem(UUID item) { return null; }
92 104
93 public InventoryFolderBase getInventoryFolder(UUID folderId) 105 public InventoryFolderBase getInventoryFolder(UUID folderId)
@@ -118,7 +130,12 @@ namespace OpenSim.Tests.Common.Mock
118 m_folders[folder.ID] = folder; 130 m_folders[folder.ID] = folder;
119 } 131 }
120 132
121 public void deleteInventoryFolder(UUID folder) {} 133 public void deleteInventoryFolder(UUID folderId)
134 {
135 if (m_folders.ContainsKey(folderId))
136 m_folders.Remove(folderId);
137 }
138
122 public List<InventoryItemBase> fetchActiveGestures(UUID avatarID) { return null; } 139 public List<InventoryItemBase> fetchActiveGestures(UUID avatarID) { return null; }
123 } 140 }
124} 141}