Package com.calclab.emite.xep.vcard

Examples of com.calclab.emite.xep.vcard.VCardOrganization


    assertEquals("stpeter@jabber.org", first.getUserId());
  }

  @Test
  public void shouldParseOrganization() {
    final VCardOrganization organization = vCard.getOrganization();
    assertEquals("XMPP Standards Foundation", organization.getData(VCardOrganization.Data.ORGNAME));
    assertEquals("Org Unit", organization.getData(VCardOrganization.Data.ORGUNIT));
  }
View Full Code Here


    assertEquals("given name", vCard.getGivenName());
  }

  @Test
  public void shouldSetOrganization() {
    final VCardOrganization organization = vCard.getOrganization();
    organization.setData(VCardOrganization.Data.ORGNAME, "XMPP Standards Foundation");
    organization.setData(VCardOrganization.Data.ORGUNIT, "Org Unit");
    assertEquals("XMPP Standards Foundation", organization.getData(VCardOrganization.Data.ORGNAME));
    assertEquals("Org Unit", organization.getData(VCardOrganization.Data.ORGUNIT));
    final VCard vCard = new VCard();
    vCard.setOrganization(organization);
    final VCardOrganization orgaAgain = vCard.getOrganization();
    assertEquals("XMPP Standards Foundation", orgaAgain.getData(VCardOrganization.Data.ORGNAME));
    assertEquals("Org Unit", orgaAgain.getData(VCardOrganization.Data.ORGUNIT));
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.xep.vcard.VCardOrganization

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.