mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Reworked MapEntry schema for better cache performance.
Set Attribute entities to be not lazy. Additional AttributeService testing. Fixed DoubleAttributeImpl's declaration to implement DoubleAttribute. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5566 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -306,6 +306,15 @@ public class AttributeServiceTest extends TestCase
|
||||
Attribute replace = new StringAttributeValue("String");
|
||||
fService.setAttribute("dummy", 2, replace);
|
||||
assertEquals("String", fService.getAttribute("dummy/2").getStringValue());
|
||||
MapAttribute map = new MapAttributeValue();
|
||||
map.put("list", list);
|
||||
MapAttribute subMap = new MapAttributeValue();
|
||||
subMap.put("a", new StringAttributeValue("polyester"));
|
||||
subMap.put("b", new StringAttributeValue("donuts"));
|
||||
subMap.put("c", new StringAttributeValue("brutality"));
|
||||
list.add(subMap);
|
||||
fService.setAttribute("", "map", map);
|
||||
assertEquals("donuts", fService.getAttribute("map/list/5/b").getStringValue());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user