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

Examples of org.apache.hadoop.hbase.rest.filter.GZIPResponseStream


  public void testGZIPResponseStream() throws IOException {
    HttpServletResponse httpResponce = mock(HttpServletResponse.class);
    ServletOutputStream out = mock(ServletOutputStream.class);

    when(httpResponce.getOutputStream()).thenReturn(out);
    GZIPResponseStream test = new GZIPResponseStream(httpResponce);
    verify(httpResponce).addHeader("Content-Encoding", "gzip");

    test.close();

    test.resetBuffer();
    verify(httpResponce).setHeader("Content-Encoding", null);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.rest.filter.GZIPResponseStream

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.