On Mon, 2015-06-22 at 16:02 +0300, Petr Shypila wrote: > Thanks for everyone. > > So as I understand for now Sling Mocks is the preferable and most > modern > way to write unit tests. Is that correct? > What about JCR data store? Does it save data between tests and should > take > care of that?
It depends on each provider implementation. The JCR_JACKRABBIT resource provider type saves the data between runs, while the JCR_OAK one does not. Robert