Added sending offline message through tester agent

cusax-fix
Damian Minkov 20 years ago
parent 718fe9e4b3
commit d3ce7a5728

@ -84,14 +84,14 @@ public void start(BundleContext bundleContext) throws Exception
//As Tested account is not registered here we send him a message.
//Message will be delivered offline
//receive test is in TestOperationSetBasicInstantMessaging.testReceiveOfflineMessages()
// String offlineMsgBody = "This is a Test Message. Supposed to be delivered as offline message!";
// IcqSlickFixture.offlineMsgCollector =
// new IcqSlickFixture.OfflineMsgCollector();
// IcqSlickFixture.offlineMsgCollector.setMessageText(offlineMsgBody);
// IcqSlickFixture.testerAgent.sendOfflineMessage(
// System.getProperty(TESTED_IMPL_ACCOUNT_ID_PROP_NAME, null),
// offlineMsgBody
// );
String offlineMsgBody = "This is a Test Message. Supposed to be delivered as offline message!";
IcqSlickFixture.offlineMsgCollector =
new IcqSlickFixture.OfflineMsgCollector();
IcqSlickFixture.offlineMsgCollector.setMessageText(offlineMsgBody);
IcqSlickFixture.testerAgent.sendOfflineMessage(
System.getProperty(TESTED_IMPL_ACCOUNT_ID_PROP_NAME, null),
offlineMsgBody
);
//First test account installation so that the service that has been
//installed by it gets tested by the rest of the tests.

Loading…
Cancel
Save