@After public void teardown() throws Exception { TestRepo.internalTearDown(); dbHelper.onTearDown(); FileUtil.deleteFolder(goConfigService.artifactsDir()); FileUtil.deleteFolder(workingFolder); TestRepo.internalTearDown(); pipelineScheduleQueue.clear(); }
@After public void teardown() throws Exception { dbHelper.onTearDown(); FileUtil.deleteFolder(goConfigService.artifactsDir()); pipelineScheduleQueue.clear(); agentAssignment.clear(); CONFIG_HELPER.onTearDown(); }
@After public void teardown() throws Exception { if (pipelineWithTwoStages != null) { pipelineWithTwoStages.onTearDown(); } dbHelper.onTearDown(); pipelineScheduleQueue.clear(); testRepo.tearDown(); FileUtil.deleteFolder(new File("pipelines")); configHelper.onTearDown(); }
@After public void teardown() throws Exception { goCache.clear(); agentService.clearAll(); fixture.onTearDown(); dbHelper.onTearDown(); configHelper.onTearDown(); FileUtil.deleteFolder(goConfigService.artifactsDir()); agentAssignment.clear(); agentRemoteHandler.connectedAgents().clear(); }
@Test public void shouldNotThrowNPEIfTheWorkingDirectoryIsEmpty() throws Exception { SvnMaterial svnMaterial1 = repo.createMaterial("multiple-materials/trunk/part1", "part1"); SvnMaterial svnMaterial2 = repo.createMaterial("multiple-materials/trunk/part2", "part2"); Materials materials = new Materials(svnMaterial1, svnMaterial2); Revision revision = latestRevision(svnMaterial1, pipelineDir, new TestSubprocessExecutionContext()); updateMaterials(materials, revision); FileUtil.deleteFolder(pipelineDir); updateMaterials(materials, revision); }
@After public void tearDown() throws Exception { for (File folder : toDelete) { FileUtil.deleteFolder(folder); } }
@After public void tearDown() { FileUtil.deleteFolder(rootPath); }
@After public void cleanupRepo() { repo.tearDown(); FileUtil.deleteFolder(pipelineDir); }