@Test public void skipsTempFilesWithStagingArea() throws Exception { upload.stagingDelay = 500L; File file = createValidUpload(); manager.addUpload(upload); managerNext(); waitUntil(() -> upload.getState() == WAITING); file.delete(); upload.valid = false; waitUntil(() -> upload.getState() == SKIPPED); }
@Override public void addUpload(Upload upload) { logger.trace("upload added: " + upload.getSource() + " to " + upload.getDestination()); transactions.add(upload); history.add(upload); }
DefaultTransferManager extends Observable implements TransferManager { @Override public void addUpload(Upload upload) { logger.trace("upload added: " + upload.getSource() + " to " + upload.getDestination()); transactions.add(upload); history.add(upload); } }
DefaultTransferManager extends Observable implements TransferManager { @Override public void addUpload(Upload upload) { logger.trace("upload added: " + upload.getSource() + " to " + upload.getDestination()); transactions.add(upload); history.add(upload); }  }
DefaultTransferManager extends Observable implements TransferManager { @Override public void addUpload(Upload upload) { logger.trace("upload added: " + upload.getSource() + " to " + upload.getDestination()); transactions.add(upload); history.add(upload); }  @Override List<Transaction> getTransactions(); @Override void addDownload(Download download); @Override List<Transaction> getHistory(); @Override void cleanup(); @Override void addUpload(Upload upload); @Override void run(); void next(); }
DefaultTransferManager extends Observable implements TransferManager { @Override public void addUpload(Upload upload) { logger.trace("upload added: " + upload.getSource() + " to " + upload.getDestination()); transactions.add(upload); history.add(upload); }  @Override List<Transaction> getTransactions(); @Override void addDownload(Download download); @Override List<Transaction> getHistory(); @Override void cleanup(); @Override void addUpload(Upload upload); @Override void run(); void next();  }