Package com.calclab.emite.xtesting.handlers

Examples of com.calclab.emite.xtesting.handlers.DiscoveryInfoResultTestHandler


  }

  @Test
  public void shouldSendInfoQuery() {
    final XmppURI uri = XmppURI.uri("node", "localhost.localdomain", "resource");
    final DiscoveryInfoResultTestHandler handler = new DiscoveryInfoResultTestHandler();
    manager.sendInfoQuery(uri, handler);
    session.answerSuccess(DISCO_RESULT);
    assertTrue(handler.isCalledOnce());
    assertTrue(handler.getLastEvent().hasResult());
    final DiscoveryInfoResults result = handler.getLastEvent().getResults();
    assertEquals(2, result.getIdentities().size());
    assertEquals(7, result.getFeatures().size());

  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.xtesting.handlers.DiscoveryInfoResultTestHandler

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.