Package jetbrains.communicator.jabber

Examples of jetbrains.communicator.jabber.VCardInfo


        vCard.load(myConnection);
      } else {
        vCard.load(myConnection, jabberId);
      }
    } catch (XMPPException e) {
      return new VCardInfo("N/A", "N/A", "N/A");
    }
    return new VCardInfo(vCard.getFirstName(), vCard.getLastName(), vCard.getNickName());
  }
View Full Code Here


    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());
  }
View Full Code Here

TOP

Related Classes of jetbrains.communicator.jabber.VCardInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.