public void testLogWithThrowable() { Throwable throwable = new Throwable(); String message = "message"; cutOffContextPathWrapper.log(message, throwable); verify(servlet).log(message, throwable); }
public void testService() throws Exception { HttpServletRequest request = mock(HttpServletRequest.class); HttpServletResponse response = mock(HttpServletResponse.class); cutOffContextPathWrapper.service(request, response); verify(servlet).service(any(RequestWrapper.class), eq(response)); }
public void testGetServletName() { cutOffContextPathWrapper.getServletName(); verify(servlet).getServletName(); }
public void testInitWithServletConfig() throws ServletException { ServletConfig servletConfig = mock(ServletConfig.class); cutOffContextPathWrapper.init(servletConfig); verify(servlet).init(servletConfig); }
public void testInit() throws ServletException { cutOffContextPathWrapper.init(); verify(servlet).init(); }
public void testGetInitParameterNames() { cutOffContextPathWrapper.getInitParameterNames(); verify(servlet).getInitParameterNames(); }
public void testGetInitParameter() { String key = "key"; cutOffContextPathWrapper.getInitParameter(key); verify(servlet).getInitParameter(key); }
public void testDestroy() { cutOffContextPathWrapper.destroy(); verify(servlet).destroy(); }
public void testLog() { String message = "message"; cutOffContextPathWrapper.log(message); verify(servlet).log(message); }