@Test(timeout=10000L) public void testUploadFiles() throws QblStorageException, IOException, InterruptedException { File dir = new File(TEST_TMP_DIR); dir.mkdirs(); BoxFolder folder = createBoxFolder(dir); File tmp = new File(dir, "tmp1.txt"); tmp.createNewFile(); controller.upload(tmp.toPath(), testFolder.resolve("tmp1.txt")); assertEquals(1, transferManager.getTransactions().size()); executeTransactions(); BoxNavigation newNav = nav.navigate(folder); assertThat(newNav.listFiles().size(), is(1)); assertThat(newNav.listFolders().size(), is(0)); }
void upload(Path source, BoxPath destination) { Upload upload = new ManualUpload(CREATE, volume, source, destination); transferManager.addUpload(upload); }
RemoteFSController extends AbstractController implements Initializable { void upload(Path source, BoxPath destination) { Upload upload = new ManualUpload(CREATE, volume, source, destination); transferManager.addUpload(upload); } }
RemoteFSController extends AbstractController implements Initializable { void upload(Path source, BoxPath destination) { Upload upload = new ManualUpload(CREATE, volume, source, destination); transferManager.addUpload(upload); }  }
RemoteFSController extends AbstractController implements Initializable { void upload(Path source, BoxPath destination) { Upload upload = new ManualUpload(CREATE, volume, source, destination); transferManager.addUpload(upload); }  @Override void initialize(URL location, ResourceBundle resources); }
RemoteFSController extends AbstractController implements Initializable { void upload(Path source, BoxPath destination) { Upload upload = new ManualUpload(CREATE, volume, source, destination); transferManager.addUpload(upload); }  @Override void initialize(URL location, ResourceBundle resources); static final int OPTION_EDGE_SIZE; }