From e376c0db4463e203b0f970c728c301dd52884730 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Mon, 29 May 2006 14:34:20 +0000 Subject: [PATCH] Tests for receiving offline messages. --- .../icq/TestProtocolProviderServiceIcqImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.java b/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.java index 8c54b4485..67bae2695 100644 --- a/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.java +++ b/test/net/java/sip/communicator/slick/protocol/icq/TestProtocolProviderServiceIcqImpl.java @@ -124,15 +124,15 @@ public void testRegister() logger.debug("We got thrown out while waiting for registration", t); } - // Here is registered the listner which will receive the first message + // Here is registered the listener which will receive the first message // This message is supposed to be offline message and as one is tested // in TestOperationSetBasicInstantMessaging.testReceiveOfflineMessages() -// Map supportedOperationSets = -// fixture.provider.getSupportedOperationSets(); -// OperationSetBasicInstantMessaging opSetBasicIM = -// (OperationSetBasicInstantMessaging)supportedOperationSets.get( -// OperationSetBasicInstantMessaging.class.getName()); -// fixture.offlineMsgCollector.register(opSetBasicIM); + Map supportedOperationSets = + fixture.provider.getSupportedOperationSets(); + OperationSetBasicInstantMessaging opSetBasicIM = + (OperationSetBasicInstantMessaging)supportedOperationSets.get( + OperationSetBasicInstantMessaging.class.getName()); + fixture.offlineMsgCollector.register(opSetBasicIM); //give time for the AIM server to notify everyone of our arrival //simply waitinf is really not a reliable way of doing things but I