@Override public void setUp() throws Exception { super.setUp(); String name = getClass().getName(); VirtualFile uploadTestFolder = mountPoint.getRoot().createFolder(name); uploadTestFolderId = uploadTestFolder.getId(); uploadTestFolderPath = uploadTestFolder.getPath(); }
@Override protected void setUp() throws Exception { super.setUp(); String name = getClass().getName(); VirtualFile deleteTestFolder = mountPoint.getRoot().createFolder(name); VirtualFile folder = deleteTestFolder.createFolder("DeleteTest_FOLDER"); // add child in folder VirtualFile childFile = folder.createFile("file", new ByteArrayInputStream(DEFAULT_CONTENT.getBytes())); folderId = folder.getId(); folderChildId = childFile.getId(); folderPath = folder.getPath(); folderChildPath = childFile.getPath(); file = deleteTestFolder.createFile( "DeleteTest_FILE", new ByteArrayInputStream(DEFAULT_CONTENT.getBytes())); fileId = file.getId(); filePath = file.getPath(); }