mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added exists and getCount to AttributeService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5709 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -294,6 +294,9 @@ public class AttributeServiceTest extends TestCase
|
||||
list.add(new IntAttributeValue(4));
|
||||
fService.setAttribute("", "dummy", list);
|
||||
Attribute found = fService.getAttribute("dummy");
|
||||
assertTrue(fService.exists("dummy"));
|
||||
assertFalse(fService.exists("dimmy"));
|
||||
assertEquals(5, fService.getCount("dummy"));
|
||||
assertNotNull(found);
|
||||
assertEquals(5, found.size());
|
||||
Attribute add = new IntAttributeValue(6);
|
||||
@@ -315,6 +318,7 @@ public class AttributeServiceTest extends TestCase
|
||||
list.add(subMap);
|
||||
fService.setAttribute("", "map", map);
|
||||
assertEquals("donuts", fService.getAttribute("map/list/5/b").getStringValue());
|
||||
assertEquals(3, fService.getCount("map/list/5"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user