diff -r 59984e68247d -r 6abfb1094884 contacts_plat/presence_cache_api/tsrc/mt_preseceqt/entitytests.cpp --- a/contacts_plat/presence_cache_api/tsrc/mt_preseceqt/entitytests.cpp Thu Sep 09 16:37:32 2010 +0300 +++ b/contacts_plat/presence_cache_api/tsrc/mt_preseceqt/entitytests.cpp Tue Sep 21 17:07:25 2010 +0300 @@ -262,8 +262,9 @@ QVERIFY((qtKeyList.count() )== (cnt - 1 ) ); } + //Change the identity of one buddy + - delete buddy; delete buddy2; @@ -305,9 +306,11 @@ connect(iReader, SIGNAL(signalPresenceRead(bool , QList )), this, SLOT( handlePresenceReadInClient(bool,QList))); QString testBuddyID = "sip:tester1@test.com"; + QString testBuddyID2 = "xzsip:abctese@tt.com"; iNotificationReceived = false; //Subscribe subscribeBuddy(testBuddyID); + subscribeBuddy(testBuddyID2); //subscribe also to some dummy buddya //Now save and check if notification is received iMapDataForAsyncTest.clear(); iMapDataForAsyncTest.insert(K_Buddy,testBuddyID); @@ -319,7 +322,7 @@ saveBuddy(iMapDataForAsyncTest); QTest::qWait(waitTime); QVERIFY(true == iNotificationReceived); - + unSubscribeBuddy(testBuddyID2); } // Subscribe , save, and Unsubscribe ,save