@Test(timeout=10000L) public void testDeleteBoxFile() throws Exception { initTreeTable(); BoxFolder folder = nav.listFolders().get(0); BoxFile file = nav.navigate(folder).listFiles().get(0); controller.deleteBoxObject(ButtonType.OK, testFolder.resolve(SUB_FILE), file); executeTransactions(); BoxNavigation newNav = nav.navigate(folder); assertThat(newNav.listFiles().size(), is(0)); }
void deleteBoxObject(ButtonType confim, BoxPath path, BoxObject object) throws QblStorageException { if (confim != ButtonType.OK) { return; } transferManager.addUpload(new ManualUpload(DELETE, volume, null, path, object instanceof BoxFolder)); }
RemoteFSController extends AbstractController implements Initializable { void deleteBoxObject(ButtonType confim, BoxPath path, BoxObject object) throws QblStorageException { if (confim != ButtonType.OK) { return; } transferManager.addUpload(new ManualUpload(DELETE, volume, null, path, object instanceof BoxFolder)); } }
RemoteFSController extends AbstractController implements Initializable { void deleteBoxObject(ButtonType confim, BoxPath path, BoxObject object) throws QblStorageException { if (confim != ButtonType.OK) { return; } transferManager.addUpload(new ManualUpload(DELETE, volume, null, path, object instanceof BoxFolder)); }  }
RemoteFSController extends AbstractController implements Initializable { void deleteBoxObject(ButtonType confim, BoxPath path, BoxObject object) throws QblStorageException { if (confim != ButtonType.OK) { return; } transferManager.addUpload(new ManualUpload(DELETE, volume, null, path, object instanceof BoxFolder)); }  @Override void initialize(URL location, ResourceBundle resources); }
RemoteFSController extends AbstractController implements Initializable { void deleteBoxObject(ButtonType confim, BoxPath path, BoxObject object) throws QblStorageException { if (confim != ButtonType.OK) { return; } transferManager.addUpload(new ManualUpload(DELETE, volume, null, path, object instanceof BoxFolder)); }  @Override void initialize(URL location, ResourceBundle resources); static final int OPTION_EDGE_SIZE; }