@Override protected void after() { delete(); }
@Override protected void after() { delete(); }
@AfterClass public static void afterClass() { temporaryFolder.delete(); }
@After public void tearDown() throws Exception { temporaryFolder.delete(); } }
@After public void tearDown() { temporaryFolder.delete(); FileUtils.deleteQuietly(rootPath); }
@After public void tearDown() { temporaryFolder.delete(); }
@After public void tearDown() throws Exception { temporaryFolder.delete(); }
@After public void tearDown() throws Exception { temporaryFolder.delete(); }
@After public void teardown() { indexingServiceClient.shutdown(); temporaryFolder.delete(); service.shutdownNow(); }
@After public void teardown() { temporaryFolder.delete(); FileUtils.deleteQuietly(workingFolder); TestRepo.internalTearDown(); }
@AfterClass public static void tearDown() { if ( testSupport != null ) { testSupport.tearDown(); folder.delete(); testSupport = null; } } }
@After public void teardown() { indexingServiceClient.shutdown(); temporaryFolder.delete(); }
@AfterClass public static void tearDown() { if ( testSupport != null ) { testSupport.tearDown(); folder.delete(); testSupport = null; } } }
@After public void teardown() throws Exception { temporaryFolder.delete(); TestRepo.internalTearDown(); }
@After public void teardown() { temporaryFolder.delete(); TestRepo.internalTearDown(); }
@After public void teardown() { testRepo.tearDown(); temporaryFolder.delete(); }
@After public void tearDown() throws Exception { monitor.stop(); super.tearDown(); temporaryFolder.delete(); }
@Test public void shouldRemoveJunkFoldersWhenCleanUpIsCalled_hasOneMaterialUseBaseFolderReturnsFalse() throws Exception { File junkFolder = temporaryFolder.newFolder("junk-folder"); Materials materials = new Materials(); GitMaterial gitMaterial = new GitMaterial("http://some-url.com", "some-branch", "some-folder"); materials.add(gitMaterial); materials.cleanUp(temporaryFolder.getRoot(), mock(ConsoleOutputStreamConsumer.class)); assertThat(junkFolder.exists(), is(false)); temporaryFolder.delete(); }
@Test public void shouldNotRemoveJunkFoldersWhenCleanUpIsCalled_hasOneMaterialUseBaseFolderReturnsTrue() throws Exception { File junkFolder = temporaryFolder.newFolder("junk-folder"); Materials materials = new Materials(); GitMaterial gitMaterial = new GitMaterial("http://some-url.com", "some-branch"); materials.add(gitMaterial); materials.cleanUp(temporaryFolder.getRoot(), mock(ConsoleOutputStreamConsumer.class)); assertThat(junkFolder.exists(), is(true)); temporaryFolder.delete(); }
@Before public void superSetup() throws IOException { temporaryFolder.delete(); temporaryFolder.create(); statusReporter = new BuildStateReporterStub(); buildVariables = new HashMap<>(); artifactsRepository = new ArtifactsRepositoryStub(); sandbox = temporaryFolder.newFolder(); console = new TestStreamConsumer(); httpService = new HttpServiceStub(); agentIdentifier = new AgentIdentifier("hostname", "ipaddress", "uuid"); }