Package org.apache.hadoop.hbase.rest.filter

Examples of org.apache.hadoop.hbase.rest.filter.GZIPResponseWrapper.sendError()


  @Test
  public void testSendError() throws IOException {
    HttpServletResponse response = mock(HttpServletResponse.class);
    GZIPResponseWrapper test = new GZIPResponseWrapper(response);

    test.sendError(404);
    verify(response).sendError(404);

    test.sendError(404, "error message");
    verify(response).sendError(404, "error message");
View Full Code Here


    GZIPResponseWrapper test = new GZIPResponseWrapper(response);

    test.sendError(404);
    verify(response).sendError(404);

    test.sendError(404, "error message");
    verify(response).sendError(404, "error message");

  }

  @Test
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.