Issue Type: Bug Bug
Assignee: Unassigned
Components: framework
Created: 21/May/13 4:42 PM
Description:

In particular these tests should pass

    @Test
    public void testPropertiesInSync() throws RepositoryException {

        // GIVEN
        Node node = session.getRootNode();
        node.setProperty(propertyName, propertyValue);
        JcrPropertyAdapter adapter = new JcrPropertyAdapter(node.getProperty(propertyName));

        Property itemProperty1 = adapter.getItemProperty(JcrPropertyAdapter.VALUE_PROPERTY);
        Property itemProperty2 = adapter.getItemProperty(JcrPropertyAdapter.VALUE_PROPERTY);

        itemProperty1.setValue("changed");

        assertTrue(itemProperty2.getValue().equals("changed"));
    }

    @Test
    public void testReturnsUpdatedProperty() throws RepositoryException {

        // GIVEN
        Node node = session.getRootNode();
        node.setProperty(propertyName, propertyValue);
        JcrPropertyAdapter adapter = new JcrPropertyAdapter(node.getProperty(propertyName));

        Property itemProperty1 = adapter.getItemProperty(JcrPropertyAdapter.VALUE_PROPERTY);

        itemProperty1.setValue("changed");

        Property itemProperty2 = adapter.getItemProperty(JcrPropertyAdapter.VALUE_PROPERTY);

        assertTrue(itemProperty2.getValue().equals("changed"));
    }
Fix Versions: 5.0
Project: Magnolia UI
Priority: Major Major
Reporter: Tobias Mattsson
Security Level: Public
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to