@Test public void testAsperaTransactionIsDoneERROR(){ transferListener = TransferListener.getInstance(xferId, null); AsperaTransfer asperaTransaction = new AsperaTransactionImpl(xferId, null, null, null, null, null); transferListener.transferReporter(xferId, msgQueued); transferListener.transferReporter(xferId, msgStats); transferListener.transferReporter(xferId, msgError); assertTrue(asperaTransaction.isDone()); }
@Override public boolean isDone() { return (doesStatusMatch(DONE)||doesStatusMatch(ERROR)||doesStatusMatch(STOP)||doesStatusMatch(ARGSTOP)); }
AsperaTransactionImpl implements AsperaTransaction { @Override public boolean isDone() { return (doesStatusMatch(DONE)||doesStatusMatch(ERROR)||doesStatusMatch(STOP)||doesStatusMatch(ARGSTOP)); } }
AsperaTransactionImpl implements AsperaTransaction { @Override public boolean isDone() { return (doesStatusMatch(DONE)||doesStatusMatch(ERROR)||doesStatusMatch(STOP)||doesStatusMatch(ARGSTOP)); } AsperaTransactionImpl(String xferid, String bucketName, String key, String fileName, TransferProgress transferProgress, ProgressListenerChain listenerChain); }
AsperaTransactionImpl implements AsperaTransaction { @Override public boolean isDone() { return (doesStatusMatch(DONE)||doesStatusMatch(ERROR)||doesStatusMatch(STOP)||doesStatusMatch(ARGSTOP)); } AsperaTransactionImpl(String xferid, String bucketName, String key, String fileName, TransferProgress transferProgress, ProgressListenerChain listenerChain); @Override boolean pause(); @Override boolean resume(); @Override boolean cancel(); @Override boolean isDone(); @Override boolean progress(); @Override boolean onQueue(); @Override String getBucketName(); @Override String getKey(); @Override AsperaResult waitForCompletion(); @Override void addProgressListener(ProgressListener listener); @Override void removeProgressListener(ProgressListener listener); @Override ProgressListenerChain getProgressListenerChain(); @Override TransferProgress getProgress(); @Override ITransferListener getTransferListener(); }
AsperaTransactionImpl implements AsperaTransaction { @Override public boolean isDone() { return (doesStatusMatch(DONE)||doesStatusMatch(ERROR)||doesStatusMatch(STOP)||doesStatusMatch(ARGSTOP)); } AsperaTransactionImpl(String xferid, String bucketName, String key, String fileName, TransferProgress transferProgress, ProgressListenerChain listenerChain); @Override boolean pause(); @Override boolean resume(); @Override boolean cancel(); @Override boolean isDone(); @Override boolean progress(); @Override boolean onQueue(); @Override String getBucketName(); @Override String getKey(); @Override AsperaResult waitForCompletion(); @Override void addProgressListener(ProgressListener listener); @Override void removeProgressListener(ProgressListener listener); @Override ProgressListenerChain getProgressListenerChain(); @Override TransferProgress getProgress(); @Override ITransferListener getTransferListener();  }