@Test public void testAbstractDefaultToStringRenderable() { Context velociContext = createMock(Context.class); HttpServletRequest request = createMock(HttpServletRequest.class); HttpServletResponse response = createMock(HttpServletResponse.class); Map<String, Object> params = new HashMap<String, Object>(); replay(velociContext, request, response); DefaultRenderable renderable = new DefaultRenderable(velociContext, params, response, request); assertEquals(velociContext, renderable.getVelocityContext()); assertEquals(request, renderable.getRequest()); assertEquals(response, renderable.getResponse()); assertEquals(params, renderable.getParams()); verify(velociContext, request, response); }
public AbstractDefaultToStringRenderable(Context velocityContext, Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) { this.velocityContext = velocityContext; this.params = params; this.response = response; this.request = request; }
AbstractDefaultToStringRenderable implements Renderable { public AbstractDefaultToStringRenderable(Context velocityContext, Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) { this.velocityContext = velocityContext; this.params = params; this.response = response; this.request = request; } }
AbstractDefaultToStringRenderable implements Renderable { public AbstractDefaultToStringRenderable(Context velocityContext, Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) { this.velocityContext = velocityContext; this.params = params; this.response = response; this.request = request; } AbstractDefaultToStringRenderable(Context velocityContext,
            Map<String, Object> params, HttpServletResponse response,
            HttpServletRequest request); }
AbstractDefaultToStringRenderable implements Renderable { public AbstractDefaultToStringRenderable(Context velocityContext, Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) { this.velocityContext = velocityContext; this.params = params; this.response = response; this.request = request; } AbstractDefaultToStringRenderable(Context velocityContext,
            Map<String, Object> params, HttpServletResponse response,
            HttpServletRequest request); @Override String toString(); }
AbstractDefaultToStringRenderable implements Renderable { public AbstractDefaultToStringRenderable(Context velocityContext, Map<String, Object> params, HttpServletResponse response, HttpServletRequest request) { this.velocityContext = velocityContext; this.params = params; this.response = response; this.request = request; } AbstractDefaultToStringRenderable(Context velocityContext,
            Map<String, Object> params, HttpServletResponse response,
            HttpServletRequest request); @Override String toString();  }