use of org.junit.After in project jackrabbit-oak by apache.
the class ConcurrentAddNodesClusterIT method after.
@After
public void after() throws Exception {
workers.clear();
for (Repository repo : repos) {
dispose(repo);
}
repos.clear();
for (DocumentMK mk : mks) {
mk.dispose();
}
mks.clear();
dropDB();
}
use of org.junit.After in project jackrabbit-oak by apache.
the class CopyTest method tearDown.
@After
public void tearDown() throws RepositoryException {
Session s = testNode.getSession();
s.removeItem(TEST_PATH);
s.save();
}
use of org.junit.After in project jackrabbit-oak by apache.
the class ConcurrentAddReferenceTest method tearDown.
@After
public void tearDown() throws RepositoryException {
Session session = getAdminSession();
testRoot.remove();
session.removeItem(refPath);
session.save();
}
use of org.junit.After in project jackrabbit-oak by apache.
the class ReadVersionContentTest method tearDown.
@Override
@After
protected void tearDown() throws Exception {
JackrabbitAccessControlList acl = AccessControlUtils.getAccessControlList(superuser, VersionConstants.VERSION_STORE_PATH);
if (acl != null) {
for (AccessControlEntry entry : acl.getAccessControlEntries()) {
if (entry.getPrincipal().equals(testUser.getPrincipal())) {
acl.removeAccessControlEntry(entry);
}
}
acMgr.setPolicy(VersionConstants.VERSION_STORE_PATH, acl);
superuser.save();
}
}
use of org.junit.After in project karaf by apache.
the class FeaturesServiceImplTest method after.
@After
public void after() throws Exception {
Field field = URL.class.getDeclaredField("factory");
field.setAccessible(true);
field.set(null, null);
}
Aggregations