[ http://jira.magnolia.info/browse/MAGNOLIA-1452?page=all ]

Vivian Steller reopened MAGNOLIA-1452:
--------------------------------------

             
the MockContent class does not support adding multiple nodes with same name, so 
behaves differently in tests than the actual JCR implementation.
e.g. executing node.createContent("0", ...) twice should create something like:
   /node/0
   /node/00 
Current implemenation stores those childnodes in a HashMap, thus executing the 
method call above overwrites the child node 0.

> testing: mock objects for content
> ---------------------------------
>
>                 Key: MAGNOLIA-1452
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1452
>             Project: Magnolia
>          Issue Type: Improvement
>            Reporter: Philipp Bracher
>         Assigned To: Philipp Bracher
>             Fix For: 3.1 M1
>
>
> I started to write mock Content, NodeData objects. They can be used for 
> writing tests.
> The goal is to write a util class transforming a properties file to a content 
> structure.
> This facilitates writing test (mainly for configuration and similar) a lot

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to