Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
rihan007
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Mock a BBMPlatformContact

[ Edited ]

hi all,

 

I would like to create an object of class BBMPlatformContact. I cant do it becuase it doesnt have a constructor. How can i mock the BBMPlatformContact so i can create objects as i like? I created a MyBBMPlatformContact class which implements Presence, but I cannot use it as I will need to modify the code which handles the conacts. I am trying to do this so i can test my app without being connected to BBM

Please use plain text.