public class DisableOpenIndexAsync extends Object implements org.junit.rules.TestRule
Rule used to make sure that the OSGi config setting for 'Open index asynchronously' is set to false in org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProviderService.
This is needed to make sure that the TestIndexUtils.waitForIndexingDone works properly, which is needed in all tests where repo content is manipulated which is indexed by the async lucene property index and accessed right afterwards.
Constructor and Description |
---|
DisableOpenIndexAsync(org.apache.sling.testing.junit.rules.instance.Instance quickstart) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement statement,
org.junit.runner.Description description)
The method been called, returns a new Statement which wraps the original Junit execution,
|
public DisableOpenIndexAsync(org.apache.sling.testing.junit.rules.instance.Instance quickstart)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement statement, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
statement
- the original execution statementdescription
- test method descriptionCopyright © 2018. All rights reserved.