Hi Bertrand, Thank you very much again for all your help. Unfortunately I still have some problems. Since now I need a RetryLoop I need a new dependency as well. And it should be loaded to Karaf. As I understand RetryLoop's module should be loaded to Karaf as a wrapped bundle[1]. That's what I'm trying to do[2] and [3]. Module's dependency is also declared in my pom file. So what am I doing wrong?
[1] https://ops4j1.jira.com/wiki/display/paxurl/Wrap+Protocol [2] https://github.com/PetrShypila/sling-builder/blob/trunk/bundles/jcr/contentloader/src/test/java/org/apache/sling/jcr/contentloader/it/BundleContentLoaderIT.java [3] https://github.com/PetrShypila/sling-builder/blob/trunk/bundles/jcr/contentloader/src/test/java/org/apache/sling/jcr/contentloader/it/P.java -Petr 2015-06-30 13:07 GMT+02:00 Bertrand Delacretaz <[email protected]>: > Hi Petr, > > On Tue, Jun 30, 2015 at 12:24 PM, Petr Shypila <[email protected]> > wrote: > > ...I will add Thread.sleep(300)(?) calls before checking that content was > > uninstalled.. > > That's ugly ;-) > > If you need a retry loop, you can either reuse the one from [1] (which > is a bit verbose to use) or implement something similar - wait a small > amount of time between checks, up to a timeout. > > > ...By the way, first time I tried to understand how I can extend > > your ContentBundleTestBase class and use with several bundles, but after > I > > didn't find a nice solution for that, I did it in my way... > > Ok that works as well. > -Bertrand > > [1] > https://svn.apache.org/repos/asf/sling/trunk/testing/tools/src/main/java/org/apache/sling/testing/tools/retry/RetryLoop.java >
