### Question:
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; }### Answer:
@Test(timeout=10000L) public void testDontDeleteBoxFolder() throws Exception { initTreeTable(); BoxFolder folder = controller.nav.listFolders().get(0); controller.deleteBoxObject(ButtonType.NO, testFolder, folder); executeTransactions(); assertThat(controller.nav.listFolders().size(), is(1)); assertThat(controller.nav.listFiles().size(), is(0)); }
@Test(timeout=10000L) public void TestDeleteBoxFolder() throws QblStorageException, IOException, InterruptedException { initTreeTable(); BoxFolder folder = nav.listFolders().get(0); controller.deleteBoxObject(ButtonType.OK, testFolder, folder); executeTransactions(); assertThat(controller.nav.listFolders().size(), is(0)); assertThat(controller.nav.listFiles().size(), is(0)); }
@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)); }
@Test(timeout=10000L) public void TestDeleteBoxFileFromRootNode() throws QblStorageException, IOException { initTreeTable(); BoxFolder folder = nav.listFolders().get(0); controller.deleteBoxObject(ButtonType.OK, testFolder, folder); assertThat(nav.listFiles().size(), is(0)); }