use of org.junit.After in project jackrabbit-oak by apache.
the class AsyncIndexUpdateTest method shutDown.
@After
public void shutDown() {
statsProvider.close();
new ExecutorCloser(executor).close();
}
use of org.junit.After in project jackrabbit-oak by apache.
the class Jr2CompatibilityTest method after.
@Override
@After
public void after() throws Exception {
try {
AccessControlManager acMgr = getAccessControlManager(root);
JackrabbitAccessControlList acl = AccessControlUtils.getAccessControlList(acMgr, "/");
if (acl != null) {
boolean modified = false;
for (AccessControlEntry entry : acl.getAccessControlEntries()) {
if (entry.getPrincipal().equals(getTestUser().getPrincipal())) {
acl.removeAccessControlEntry(entry);
modified = true;
}
}
if (modified) {
acMgr.setPolicy("/", acl);
root.commit();
}
}
} finally {
super.after();
}
}
use of org.junit.After in project jackrabbit-oak by apache.
the class LucenePropertyIndexTest method after.
@After
public void after() {
new ExecutorCloser(executorService).close();
IndexDefinition.setDisableStoredIndexDefinition(false);
}
use of org.junit.After in project geode by apache.
the class JtaNoninvolvementJUnitTest method after.
@After
public void after() {
closeCache();
InternalDistributedSystem ids = InternalDistributedSystem.getAnyInstance();
if (ids != null) {
ids.disconnect();
}
}
use of org.junit.After in project geode by apache.
the class QueryObserverCallbackJUnitTest method tearDown.
@After
public void tearDown() throws Exception {
CacheUtils.closeCache();
IndexManager indexManager = ((LocalRegion) region).getIndexManager();
if (indexManager != null)
indexManager.destroy();
}
Aggregations