Package com.google.wave.api.event

Examples of com.google.wave.api.event.OperationErrorEvent


    assertEquals("Expected operation id not to change", OPERATION_ID, response.getId());
  }

  public void testProcessErrorEvent() throws Exception {
    // A randomly selected non-error event
    Event event = new OperationErrorEvent(null, null, USERNAME, 0L, OPERATION_ID, ERROR_MESSAGE);
    operationContext.processEvent(request, event);

    JsonRpcResponse response = operationContext.getResponse(request.getId());
    assertTrue("Expected error response", response.isError());
    assertEquals("Expected provided error message", ERROR_MESSAGE, response.getErrorMessage());
View Full Code Here

TOP

Related Classes of com.google.wave.api.event.OperationErrorEvent

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.