Re: [mocks] weird RT exception with JCR_MOCK

2017-07-06 Thread Stefan Egli
Hi Nicolas, OakEventFilter got added to oak in 1.6, so it looks like you have a dependency on oak 1.6 but are running on an older version. Cheers, Stefan On 06/07/17 10:20, "Nicolas Peltier" wrote: >Hi, > >When adding o.a.s.jcr.resource to sling pipes (for

[mocks] weird RT exception with JCR_MOCK

2017-07-06 Thread Nicolas Peltier
Hi, When adding o.a.s.jcr.resource to sling pipes (for JcrResourceConstants), mocks fail to run with exception [0]. I started playing around with exclusions and dependency without success and figured out I could ask here if anybody had this issue before. Any clue? Nicolas [0] Caused by:

Re: [mocks] weird RT exception with JCR_MOCK

2017-07-06 Thread Nicolas Peltier
Thanks Stefan for the analysis! Did use same jcr.resource version as sling mocks’ and it did the trick (I only this dep for constants), hope it’s not (too much of a) bad practice Nicolas > On 6 Jul 2017, at 10:48, Stefan Seifert wrote: > > the latest versions of

RE: [mocks] weird RT exception with JCR_MOCK

2017-07-06 Thread Stefan Seifert
the latest versions of org.apache.sling.jcr.resource come with a direct dependency to oak, which is declared as "provided", so it's not automatically present in your unit tests. sling-mock itself references an older jcr.resource withouth this dependency, so this normally works. i assume you