@Test public void setNoCache() { servlet.setNoCache(response); verify(response, times(3)).setHeader(Mockito.anyString(), Mockito.anyString()); }
protected void setNoCache(HttpServletResponse response) { response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); }
BaseServlet extends SlingAllMethodsServlet { protected void setNoCache(HttpServletResponse response) { response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); } }
BaseServlet extends SlingAllMethodsServlet { protected void setNoCache(HttpServletResponse response) { response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); }  }
BaseServlet extends SlingAllMethodsServlet { protected void setNoCache(HttpServletResponse response) { response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); }   }
BaseServlet extends SlingAllMethodsServlet { protected void setNoCache(HttpServletResponse response) { response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "-1"); }    }