GitHub user Buuhuu opened a pull request:
https://github.com/apache/sling/pull/189
SLING-6388: Implemented MockSession.hasPendingChanges()
Note about the changes in MockSessionTest:
I had to use a local Session for each of the @Test methods. This is because
the comment
> // methods can be called without any effect
is not right anymore, but saving the session at the end of each of the
@Test methods seemed a bit wrong imho.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/Buuhuu/sling feature/SLING-6388
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/sling/pull/189.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #189
----
commit 8f88d8c2ecce5cd4a88eb9a18acc3d76ad8f7fa1
Author: Dirk Rudolph <[email protected]>
Date: 2016-12-10T20:16:04Z
SLING-6388: implement Item.isModified reacting on implementations of
Node.setProperty and Property.setValue() calls
commit a90378c7d2c8e00ca0178861b19943dcfcc6ca51
Author: Dirk Rudolph <[email protected]>
Date: 2016-12-10T20:18:07Z
SLING-6388: implemented tracking of session changes for MockSession
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---