Package com.calclab.emite.xtesting.handlers

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


  }

  @Test
  public void shouldRaiseErrorIfSendUsingLockedChat() {
    properties.setStatus(ChatStatus.locked);
    final ErrorTestHandler handler = new ErrorTestHandler();
    chat.addErrorHandler(handler);
    chat.send(new Message("body"));
    assertTrue(handler.isCalledOnce());
    assertEquals(ChatErrors.sendNotReady, handler.getLastEvent().getErrorType());
  }
View Full Code Here

TOP

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

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.