Package com.calclab.emite.xep.disco

Examples of com.calclab.emite.xep.disco.Item


import com.calclab.emite.xep.disco.Item;

public class ItemTest {
  @Test
  public void shouldParsePacket() {
    final Item item = Item.fromPacket(XMLBuilder.fromXML("<item jid='hello@whatever.com/home' name='hello' node='root' />"));
    assertNotNull(item);
    assertEquals("hello@whatever.com/home", item.jid);
    assertEquals("hello", item.name);
    assertEquals("root", item.node);
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.xep.disco.Item

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.