Package com.calclab.emite.xtesting.handlers

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


    session.verifySent("<presence from='user@local' to='friend@domain' type='unsubscribed' />");
  }

  @Test
  public void shouldFireSubscriptionRequests() {
    final SubscriptionRequestReceivedTestHandler handler = new SubscriptionRequestReceivedTestHandler();
    manager.addSubscriptionRequestReceivedHandler(handler);
    session.receives("<presence to='user@local' from='friend@domain' type='subscribe' />");
    assertEquals(1, handler.getCalledTimes());
  }
View Full Code Here

TOP

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

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.