use of org.apache.carbondata.core.datastore.filesystem.LocalCarbonFile in project carbondata by apache.
the class CarbonUtilTest method testToDeleteFoldersAndFilesForCarbonFileSilently.
@Test
public void testToDeleteFoldersAndFilesForCarbonFileSilently() throws IOException, InterruptedException {
LocalCarbonFile testDir = new LocalCarbonFile("../core/src/test/resources/testDir");
testDir.createNewFile();
CarbonUtil.deleteFoldersAndFilesSilent(testDir);
assertTrue(!testDir.exists());
}
use of org.apache.carbondata.core.datastore.filesystem.LocalCarbonFile in project carbondata by apache.
the class CarbonUtilTest method testToDeleteFoldersAndFilesForValidCarbonFile.
@Test
public void testToDeleteFoldersAndFilesForValidCarbonFile() throws InterruptedException, IOException {
LocalCarbonFile testDir = new LocalCarbonFile("../core/src/test/resources/testDir/testCarbonFile");
testDir.createNewFile();
CarbonUtil.deleteFoldersAndFiles(testDir);
assertTrue(!testDir.exists());
}
Aggregations