Package com.calclab.emite.xep.disco

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


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

public class IdentityTest {
  @Test
  public void shouldParsePacket() {
    final Identity identity = Identity.fromPacket(XMLBuilder.fromXML("<identity category='pubsub' type='pep' name='publish' />"));
    assertNotNull(identity);
    assertEquals("pubsub", identity.category);
    assertEquals("pep", identity.type);
    assertEquals("publish", identity.name);
  }
View Full Code Here

TOP

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

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.