diff options
Diffstat (limited to 'OpenSim/Tests/Robust/Clients')
-rw-r--r-- | OpenSim/Tests/Robust/Clients/Inventory/InventoryClient.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Tests/Robust/Clients/Inventory/InventoryClient.cs b/OpenSim/Tests/Robust/Clients/Inventory/InventoryClient.cs index 2fb0751..0280b73 100644 --- a/OpenSim/Tests/Robust/Clients/Inventory/InventoryClient.cs +++ b/OpenSim/Tests/Robust/Clients/Inventory/InventoryClient.cs | |||
@@ -78,7 +78,7 @@ namespace Robust.Tests | |||
78 | m_rootFolderID = m_Connector.GetRootFolder(m_userID).ID; | 78 | m_rootFolderID = m_Connector.GetRootFolder(m_userID).ID; |
79 | Assert.AreNotEqual(m_rootFolderID, UUID.Zero, "Root folder ID must not be UUID.Zero"); | 79 | Assert.AreNotEqual(m_rootFolderID, UUID.Zero, "Root folder ID must not be UUID.Zero"); |
80 | 80 | ||
81 | InventoryFolderBase of = m_Connector.GetFolderForType(m_userID, AssetType.Object); | 81 | InventoryFolderBase of = m_Connector.GetFolderForType(m_userID, FolderType.Object); |
82 | Assert.IsNotNull(of, "Failed to retrieve Objects folder"); | 82 | Assert.IsNotNull(of, "Failed to retrieve Objects folder"); |
83 | m_objectsFolder = of.ID; | 83 | m_objectsFolder = of.ID; |
84 | Assert.AreNotEqual(m_objectsFolder, UUID.Zero, "Objects folder ID must not be UUID.Zero"); | 84 | Assert.AreNotEqual(m_objectsFolder, UUID.Zero, "Objects folder ID must not be UUID.Zero"); |
@@ -93,7 +93,7 @@ namespace Robust.Tests | |||
93 | success = m_Connector.AddItem(item); | 93 | success = m_Connector.AddItem(item); |
94 | Assert.IsTrue(success, "Failed to add object to inventory"); | 94 | Assert.IsTrue(success, "Failed to add object to inventory"); |
95 | 95 | ||
96 | InventoryFolderBase ncf = m_Connector.GetFolderForType(m_userID, AssetType.Notecard); | 96 | InventoryFolderBase ncf = m_Connector.GetFolderForType(m_userID, FolderType.Notecard); |
97 | Assert.IsNotNull(of, "Failed to retrieve Notecards folder"); | 97 | Assert.IsNotNull(of, "Failed to retrieve Notecards folder"); |
98 | m_notecardsFolder = ncf.ID; | 98 | m_notecardsFolder = ncf.ID; |
99 | Assert.AreNotEqual(m_notecardsFolder, UUID.Zero, "Notecards folder ID must not be UUID.Zero"); | 99 | Assert.AreNotEqual(m_notecardsFolder, UUID.Zero, "Notecards folder ID must not be UUID.Zero"); |
@@ -118,7 +118,7 @@ namespace Robust.Tests | |||
118 | 118 | ||
119 | // Add a folder | 119 | // Add a folder |
120 | InventoryFolderBase folder = new InventoryFolderBase(new UUID("f0000000-0000-0000-0000-00000000000f"), "Test Folder", m_userID, m_rootFolderID); | 120 | InventoryFolderBase folder = new InventoryFolderBase(new UUID("f0000000-0000-0000-0000-00000000000f"), "Test Folder", m_userID, m_rootFolderID); |
121 | folder.Type = (int)AssetType.Folder; | 121 | folder.Type = (int)FolderType.None; |
122 | success = m_Connector.AddFolder(folder); | 122 | success = m_Connector.AddFolder(folder); |
123 | Assert.IsTrue(success, "Failed to add Test Folder to inventory"); | 123 | Assert.IsTrue(success, "Failed to add Test Folder to inventory"); |
124 | 124 | ||
@@ -133,7 +133,7 @@ namespace Robust.Tests | |||
133 | Assert.IsTrue(success, "Failed to add link to notecard to inventory"); | 133 | Assert.IsTrue(success, "Failed to add link to notecard to inventory"); |
134 | 134 | ||
135 | // Add a link to the Objects folder in Test Folder | 135 | // Add a link to the Objects folder in Test Folder |
136 | item.AssetID = m_Connector.GetFolderForType(m_userID, AssetType.Object).ID; // use item ID of Objects folder | 136 | item.AssetID = m_Connector.GetFolderForType(m_userID, FolderType.Object).ID; // use item ID of Objects folder |
137 | item.ID = new UUID("50000000-0000-0000-0000-000000000005"); | 137 | item.ID = new UUID("50000000-0000-0000-0000-000000000005"); |
138 | item.AssetType = (int)AssetType.LinkFolder; | 138 | item.AssetType = (int)AssetType.LinkFolder; |
139 | item.Folder = folder.ID; | 139 | item.Folder = folder.ID; |