aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip/communicator/slick
diff options
context:
space:
mode:
authorEmil Ivov <emcho@jitsi.org>2006-10-03 15:40:31 +0000
committerEmil Ivov <emcho@jitsi.org>2006-10-03 15:40:31 +0000
commitabb9524f68db6d01e6ed692df37bfce8f20fd673 (patch)
tree2a88d27cd2e10a2a5f18d3539eb35b2cb37595f6 /test/net/java/sip/communicator/slick
parentc4d75e4b7061676848198f11e9b556a2dd2d1797 (diff)
downloadjitsi-abb9524f68db6d01e6ed692df37bfce8f20fd673.zip
jitsi-abb9524f68db6d01e6ed692df37bfce8f20fd673.tar.gz
jitsi-abb9524f68db6d01e6ed692df37bfce8f20fd673.tar.bz2
do not insist on getting state change events for call participants when they get created, because we might have missed them.
Diffstat (limited to 'test/net/java/sip/communicator/slick')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicTelephonySipImpl.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicTelephonySipImpl.java b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicTelephonySipImpl.java
index 2a369eb..fe41971 100644
--- a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicTelephonySipImpl.java
+++ b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicTelephonySipImpl.java
@@ -136,8 +136,8 @@ public class TestOperationSetBasicTelephonySipImpl
= new CallParticipantStateEventCollector(
participantAtP2, CallParticipantState.INCOMING_CALL);
- stateCollectorForPp1.waitForEvent(10000);
- stateCollectorForPp2.waitForEvent(10000);
+ stateCollectorForPp1.waitForEvent(10000, true);
+ stateCollectorForPp2.waitForEvent(10000, true);
assertSame("participantAtP1.getCall"
, participantAtP1.getCall(), callAtP1);
@@ -154,6 +154,7 @@ public class TestOperationSetBasicTelephonySipImpl
, CallParticipantState.INCOMING_CALL
, participantAtP2.getState());
+
//test whether caller/callee info is properly distributed in case
//the server is said to support it.
if(Boolean.getBoolean("accounts.sip.PRESERVE_PARTICIPANT_INFO"))
@@ -201,7 +202,6 @@ public class TestOperationSetBasicTelephonySipImpl
+ "display name."
, expectedParticipant2DisplayName
, participantAtP2.getDisplayName());
-
}
//we'll now try to cancel the call
@@ -366,8 +366,8 @@ public class TestOperationSetBasicTelephonySipImpl
= new CallParticipantStateEventCollector(
participantAtP2, CallParticipantState.INCOMING_CALL);
- stateCollectorForPp1.waitForEvent(10000);
- stateCollectorForPp2.waitForEvent(10000);
+ stateCollectorForPp1.waitForEvent(10000, true);
+ stateCollectorForPp2.waitForEvent(10000, true);
assertSame("participantAtP1.getCall"
, participantAtP1.getCall(), callAtP1);
@@ -384,6 +384,7 @@ public class TestOperationSetBasicTelephonySipImpl
, CallParticipantState.INCOMING_CALL
, participantAtP2.getState());
+
//test whether caller/callee info is properly distributed in case
//the server is said to support it.
if(Boolean.getBoolean("accounts.sip.PRESERVE_PARTICIPANT_INFO"))
@@ -891,10 +892,10 @@ public class TestOperationSetBasicTelephonySipImpl
logger.debug(
"Collected evt("+collectedEvents.size()+")= "+event);
- this.collectedEvents.add(event);
if(((CallParticipantState)event.getNewValue())
.equals(awaitedState))
{
+ this.collectedEvents.add(event);
notifyAll();
}
}
@@ -1036,9 +1037,9 @@ public class TestOperationSetBasicTelephonySipImpl
logger.debug(
"Collected evt("+collectedEvents.size()+")= "+event);
- this.collectedEvents.add(event);
if(((CallState)event.getNewValue()).equals(awaitedState))
{
+ this.collectedEvents.add(event);
notifyAll();
}
}