Examples of ErrorTestHandler


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
Copyright © 2018 www.massapi.com. 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.