From e155ab781481e4f031965d7d40b2a2843cb5bbda Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 14 Feb 2020 20:17:52 +0000 Subject: [PATCH] patch a test --- .../Common/Mock/TestXInventoryDataPlugin.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/OpenSim/Tests/Common/Mock/TestXInventoryDataPlugin.cs b/OpenSim/Tests/Common/Mock/TestXInventoryDataPlugin.cs index 77f1793387..5b33791c8c 100644 --- a/OpenSim/Tests/Common/Mock/TestXInventoryDataPlugin.cs +++ b/OpenSim/Tests/Common/Mock/TestXInventoryDataPlugin.cs @@ -121,7 +121,22 @@ namespace OpenSim.Tests.Common return true; } - public bool MoveItem(string id, string newParent) { throw new NotImplementedException(); } + public bool MoveItem(string id, string newParent) + { + UUID uid = new UUID(id); + UUID upid = new UUID(newParent); + m_allItems[uid].parentFolderID = upid; + return true; + } + + public bool MoveItems(string[] ids, string[] newParents) + { + if(ids.Length != newParents.Length) + return false; + for(int i =0; i< ids.Length;++i) + MoveItem(ids[i], newParents[i]); + return true; + } public bool MoveFolder(string id, string newParent) {