use of org.junit.After in project Activiti by Activiti.
the class SerializableVariablesDiabledTest method removeUsers.
@After
public void removeUsers() {
identityService.deleteMembership(testUserId, testGroupId);
identityService.deleteGroup(testGroupId);
identityService.deleteUser(testUserId);
for (Deployment deployment : repositoryService.createDeploymentQuery().list()) {
repositoryService.deleteDeployment(deployment.getId(), true);
}
}
use of org.junit.After in project Activiti by Activiti.
the class SecureScriptingBaseTest method shutdownProcessEngine.
@After
public void shutdownProcessEngine() {
for (Deployment deployment : repositoryService.createDeploymentQuery().list()) {
repositoryService.deleteDeployment(deployment.getId(), true);
}
this.taskService = null;
this.repositoryService = null;
this.runtimeService = null;
this.processEngine.close();
this.processEngine = null;
}
use of org.junit.After in project nhin-d by DirectProject.
the class AuditorFactoryTest method cleanUpSPIFiles.
@Before
@After
public void cleanUpSPIFiles() {
File spiFile = new File(resourceDirLoc + SPIFileName);
if (spiFile.exists())
spiFile.delete();
spiFile = new File(cloverResourceDirLoc + SPIFileName);
if (spiFile.exists())
spiFile.delete();
}
use of org.junit.After in project opennms by OpenNMS.
the class PollContextIT method tearDown.
@After
public void tearDown() throws Exception {
for (final OnmsNode node : m_nodeDao.findAll()) {
m_nodeDao.delete(node);
}
m_nodeDao.flush();
MockLogAppender.assertNoWarningsOrGreater();
}
use of org.junit.After in project heron by twitter.
the class MetricsCacheSinkTest method after.
@After
@SuppressWarnings("unchecked")
public void after() throws Exception {
// Remove the Singleton by Reflection
Field field = SingletonRegistry.INSTANCE.getClass().getDeclaredField("singletonObjects");
field.setAccessible(true);
Map<String, Object> singletonObjects = (Map<String, Object>) field.get(SingletonRegistry.INSTANCE);
singletonObjects.clear();
}
Aggregations