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:
Britt Park
2007-04-26 15:53:13 +00:00
parent 2888a3737c
commit e73ce68e8f
19 changed files with 150 additions and 107 deletions

View File

@@ -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)
{