mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Another pair of convenience methods for AttributeService:
removeEntries, which removes map entries by query. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -282,6 +282,9 @@ public class AttributeServiceTest extends TestCase
|
||||
assertEquals(25, fService.getKeys("map/submap/subsubmap").size());
|
||||
fService.removeAttribute("map/submap", "subsubmap");
|
||||
assertEquals(26, fService.getKeys("map/submap").size());
|
||||
fService.removeEntries("map/submap", new AttrAndQuery(new AttrQueryGTE("a"),
|
||||
new AttrQueryLTE("d")));
|
||||
assertEquals(22, fService.getCount("map/submap"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user