diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-08-31 15:25:57 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-08-31 15:25:57 +0000 |
commit | f837057d334ce9132ddae3438b5361baf2f56750 (patch) | |
tree | fce75a25c16e1972a565023aa195bae8955fef3b /test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java | |
parent | d84529346a391f3fd33d3bff5ebb808a837429d3 (diff) | |
download | jitsi-f837057d334ce9132ddae3438b5361baf2f56750.zip jitsi-f837057d334ce9132ddae3438b5361baf2f56750.tar.gz jitsi-f837057d334ce9132ddae3438b5361baf2f56750.tar.bz2 |
Commits the last part of the patch provided by Sebastien Vincent on the dev mailing list in an e-mail with the subject "Fix lot of warnings in the code" which fixes warnings in the test directory.
Diffstat (limited to 'test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java')
-rw-r--r-- | test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java b/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java index 5b797d0..ca30998 100644 --- a/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java +++ b/test/net/java/sip/communicator/slick/protocol/generic/TestOperationSetFileTransfer.java @@ -126,7 +126,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); FileTransferStatusChangeEvent fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be preparing" ,FileTransferStatusChangeEvent.PREPARING @@ -178,21 +178,21 @@ public abstract class TestOperationSetFileTransfer , 3, receiverStatusListener.collectedEvents.size()); fileTransferStatusEvent - = (FileTransferStatusChangeEvent)receiverStatusListener.collectedEvents.get(0); + = receiverStatusListener.collectedEvents.get(0); assertEquals("Event must be preparing" ,FileTransferStatusChangeEvent.PREPARING ,fileTransferStatusEvent.getNewStatus()); fileTransferStatusEvent - = (FileTransferStatusChangeEvent)receiverStatusListener.collectedEvents.get(1); + = receiverStatusListener.collectedEvents.get(1); assertEquals("Event must be completed" ,FileTransferStatusChangeEvent.IN_PROGRESS ,fileTransferStatusEvent.getNewStatus()); fileTransferStatusEvent - = (FileTransferStatusChangeEvent)receiverStatusListener.collectedEvents.get(2); + = receiverStatusListener.collectedEvents.get(2); assertEquals("Event must be completed" ,FileTransferStatusChangeEvent.COMPLETED @@ -258,7 +258,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); FileTransferStatusChangeEvent fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be preparing" ,FileTransferStatusChangeEvent.PREPARING @@ -298,7 +298,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be canceled" ,FileTransferStatusChangeEvent.CANCELED @@ -368,7 +368,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); FileTransferStatusChangeEvent fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be preparing" ,FileTransferStatusChangeEvent.PREPARING @@ -417,7 +417,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be refused" ,FileTransferStatusChangeEvent.REFUSED @@ -482,7 +482,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); FileTransferStatusChangeEvent fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be preparing" ,FileTransferStatusChangeEvent.PREPARING @@ -625,7 +625,7 @@ public abstract class TestOperationSetFileTransfer , 1, senderStatusListener.collectedEvents.size()); FileTransferStatusChangeEvent fileTransferStatusEvent - = (FileTransferStatusChangeEvent)senderStatusListener.collectedEvents.get(0); + = senderStatusListener.collectedEvents.get(0); assertEquals("Event must be preparing" ,FileTransferStatusChangeEvent.PREPARING @@ -740,7 +740,9 @@ public abstract class TestOperationSetFileTransfer public class FileTransferEventCollector implements FileTransferListener { - public ArrayList collectedEvents = new ArrayList(); + public final List<EventObject> collectedEvents + = new ArrayList<EventObject>(); + private boolean rejected = false; private boolean canceled = false; private FileTransferStatusEventCollector statusCollector = null; |