assertFalse("Connection failed", myFacade.isConnectedAndAuthenticated());
}
public void testSetVCardInfo() throws Throwable {
createGoodAccount(myUser, myFacade);
VCardInfo vCard = myFacade.getVCard(null);
assertEquals("Empty VCard expected", "", vCard.getFirstname() + vCard.getLastname() );
myFacade.setVCardInfo("nick", "Kirill", "Maximov");
// Recreate facade and connection:
myFacade = new JabberFacadeImpl(myIDEFacade);
myFacade.connect(myUser, PASSWORD, LOCALHOST, myFacade.getMyAccount().getPort(), false);
vCard = myFacade.getVCard(null);
assertEquals("Should obtain VCard for self - nickname", "nick", vCard.getNickName());
assertEquals("Should obtain VCard for self - firsname", "Kirill", vCard.getFirstname());
assertEquals("Should obtain VCard for self - lastname", "Maximov", vCard.getLastname());
}