Package com.calclab.emite.xtesting.handlers

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


  public abstract C getChat();

  @Test
  public void shouldInterceptIncomingMessages() {
    final C chat = getChat();
    final BeforeMessageReceivedTestHandler interceptor = new BeforeMessageReceivedTestHandler();
    chat.addBeforeMessageReceivedHandler(interceptor);
    final Message message = new Message("body", USER_URI, chat.getURI());
    session.receives(message);
    assertEquals(message, interceptor.getLastMessage());
  }
View Full Code Here

TOP

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

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.