@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { if (localManagementContext != null) Entities.destroyAll(localManagementContext); if (app != null) Entities.destroyAll(app.getManagementContext()); if (persister != null) persister.stop(); if (objectStore != null) objectStore.deleteCompletely(); persister = null; }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { if (mgmt != null) Entities.destroyAll(mgmt); mgmt = null; tempDir = Os.deleteRecursively(tempDir).asNullOrThrowing(); checkExpectedFailure(); }
@Test public void testCreateInAppWithClassAndMap() { StartableApplication app2 = null; try { ApplicationBuilder appB = new ApplicationBuilder() { @Override protected void doBuild() { addChild(MutableMap.of("confName", "faz"), TestEntity.class); } }; app2 = appB.manage(); assertEquals( Iterables.getOnlyElement(app2.getChildren()).getConfig(TestEntity.CONF_NAME), "faz"); } finally { if (app2 != null) Entities.destroyAll(app2); } }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { if (host != null) Streams.closeQuietly(host); if (managementContext != null) Entities.destroyAll(managementContext); RecordingSshjTool.reset(); }
@AfterMethod(alwaysRun = true) public void teardown() { if (brooklynMgmt != null) Entities.destroyAll(brooklynMgmt); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { if (app != null) Entities.destroyAll(app.getManagementContext()); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { if (app != null) Entities.destroyAll(app); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { if (manager != null) manager.stop(); if (managementContext != null) Entities.destroyAll(managementContext); if (objectStore != null) objectStore.deleteCompletely(); }
@AfterMethod(alwaysRun = true) public void shutdown() { if (app != null) Entities.destroyAll(app.getManagementContext()); }
@AfterMethod(alwaysRun = true) public void tearDown() throws Exception { stopServerSocket(); if (managementContext != null) Entities.destroyAll(managementContext); }
@AfterMethod(alwaysRun = true) public void shutdown() { if (app != null) Entities.destroyAll(app); }