[
https://issues.apache.org/jira/browse/SLING-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16496247#comment-16496247
]
Stefan Seifert commented on SLING-7692:
---------------------------------------
no - you really need to track the changes since the last save (changes may be
new nodes, or overwritten properties in existing nodes, or deleted nodes) - and
revert all those changes and revert to the original values in this case. the
resourceresolver mock does something like this, but jcr-mock not (yet).
> MockSession.revert(false) should send UnsupportedOperationException
> -------------------------------------------------------------------
>
> Key: SLING-7692
> URL: https://issues.apache.org/jira/browse/SLING-7692
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing JCR Mock 1.3.2
> Reporter: Nicolas Peltier
> Assignee: Nicolas Peltier
> Priority: Major
> Fix For: Testing JCR Mock 1.3.4
>
>
> MockSession does not cancel the changes when refresh(false) is called, hence
> resolver.revert() not working in case JCR_MOCK is used
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)