예제 #1
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   String name = getClass().getName();
   VirtualFile uploadTestFolder = mountPoint.getRoot().createFolder(name);
   uploadTestFolderId = uploadTestFolder.getId();
   uploadTestFolderPath = uploadTestFolder.getPath();
 }
예제 #2
0
  @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();
  }