}
@Test
public void deleteDirectoryWithDirectoriesTest2() throws InvalidPathException,
FileAlreadyExistException, TachyonException, BlockInfoException {
Assert.assertTrue(mMasterInfo.mkdirs(new TachyonURI("/testFolder"), true));
Assert.assertTrue(mMasterInfo.mkdirs(new TachyonURI("/testFolder/testFolder2"), true));
int fileId =
mMasterInfo.createFile(new TachyonURI("/testFolder/testFile"),
Constants.DEFAULT_BLOCK_SIZE_BYTE);
int fileId2 =
mMasterInfo.createFile(new TachyonURI("/testFolder/testFolder2/testFile2"),
Constants.DEFAULT_BLOCK_SIZE_BYTE);
Assert.assertEquals(2, mMasterInfo.getFileId(new TachyonURI("/testFolder")));
Assert.assertEquals(3, mMasterInfo.getFileId(new TachyonURI("/testFolder/testFolder2")));
Assert.assertEquals(fileId, mMasterInfo.getFileId(new TachyonURI("/testFolder/testFile")));
Assert.assertEquals(fileId2,
mMasterInfo.getFileId(new TachyonURI("/testFolder/testFolder2/testFile2")));
Assert.assertFalse(mMasterInfo.delete(2, false));
Assert.assertEquals(2, mMasterInfo.getFileId(new TachyonURI("/testFolder")));
Assert.assertEquals(3, mMasterInfo.getFileId(new TachyonURI("/testFolder/testFolder2")));
Assert.assertEquals(fileId, mMasterInfo.getFileId(new TachyonURI("/testFolder/testFile")));
Assert.assertEquals(fileId2,
mMasterInfo.getFileId(new TachyonURI("/testFolder/testFolder2/testFile2")));
}