use of org.junit.After in project jackrabbit-oak by apache.
the class MembershipBaseTest method after.
@After
public void after() throws Exception {
try {
root.refresh();
for (String path : Iterables.concat(testUsers, testGroups)) {
Authorizable auth = userMgr.getAuthorizableByPath(path);
if (auth != null) {
auth.remove();
}
}
root.commit();
} finally {
testUsers.clear();
testGroups.clear();
super.after();
}
}
use of org.junit.After in project jackrabbit-oak by apache.
the class ValidNamesTest method tearDown.
@After
public void tearDown() throws RepositoryException {
Session s = testNode.getSession();
s.removeItem(TEST_PATH);
s.save();
Repository r = s.getRepository();
s.logout();
dispose(r);
}
use of org.junit.After in project jackrabbit-oak by apache.
the class CreateUserTest method tearDown.
@After
@Override
protected void tearDown() throws Exception {
superuser.refresh(false);
// remove all created users again
for (Object createdUser : createdUsers) {
Authorizable auth = (Authorizable) createdUser;
try {
auth.remove();
superuser.save();
} catch (RepositoryException e) {
log.warn("Failed to remove User " + auth.getID() + " during tearDown.");
}
}
super.tearDown();
}
use of org.junit.After in project jackrabbit-oak by apache.
the class ActiveDeletedBlobCollectionIT method after.
@After
public void after() {
new ExecutorCloser(executorService).close();
executorService.shutdown();
IndexDefinition.setDisableStoredIndexDefinition(false);
}
use of org.junit.After in project jackrabbit-oak by apache.
the class AbstractRandomizedTest method tearDown.
@After
public void tearDown() throws Exception {
clearContent();
clearAuthorizables();
for (JackrabbitSession s : writeSessions) {
if (s.isLive()) {
s.logout();
}
}
for (Session s : readSessions) {
if (s.isLive()) {
s.logout();
}
}
jackrabbitRepository = dispose(jackrabbitRepository);
oakRepository = dispose(oakRepository);
}
Aggregations