Search in sources :

Example 1 with DeleteFileVisitor

use of com.qubole.rubix.common.utils.DeleteFileVisitor in project rubix by qubole.

the class TestDiskUtils method tearDown.

@AfterMethod
public void tearDown() throws IOException {
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterMethod(org.testng.annotations.AfterMethod)

Example 2 with DeleteFileVisitor

use of com.qubole.rubix.common.utils.DeleteFileVisitor in project rubix by qubole.

the class TestCachingInputStream method tearDownClass.

@AfterClass
public static void tearDownClass() throws IOException {
    BookKeeperFactory.resetConnectionPool();
    log.info("Deleting files in " + testDirectory);
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterClass(org.testng.annotations.AfterClass)

Example 3 with DeleteFileVisitor

use of com.qubole.rubix.common.utils.DeleteFileVisitor in project rubix by qubole.

the class TestNonLocalReadRequestChain method tearDownClass.

@AfterClass
public static void tearDownClass() throws IOException {
    log.info("Deleting files in " + testDirectory);
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterClass(org.testng.annotations.AfterClass)

Example 4 with DeleteFileVisitor

use of com.qubole.rubix.common.utils.DeleteFileVisitor in project rubix by qubole.

the class TestGenerationNumber method tearDownClass.

@AfterClass
public static void tearDownClass() throws IOException {
    Files.walkFileTree(Paths.get(testDirectory), new DeleteFileVisitor());
    Files.deleteIfExists(Paths.get(testDirectory));
}
Also used : DeleteFileVisitor(com.qubole.rubix.common.utils.DeleteFileVisitor) AfterClass(org.testng.annotations.AfterClass)

Aggregations

DeleteFileVisitor (com.qubole.rubix.common.utils.DeleteFileVisitor)4 AfterClass (org.testng.annotations.AfterClass)3 AfterMethod (org.testng.annotations.AfterMethod)1