Spring Framework MockRequestDispatcher - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework MockRequestDispatcher class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
 
	private JspParser jspParser; 
	private Logger logger = LoggerFactory.getLogger(VRaptorTestMockRequestDispatcher.class); 
 
	public VRaptorTestMockRequestDispatcher(String resource,JspParser jspParser) { 
		super(resource); 
		this.jspParser = jspParser; 
	} 
 
	@Override 
	protected MockHttpServletResponse getMockHttpServletResponse( 
			ServletResponse response) { 
		if (response instanceof TargetInstanceProxy) { 
			VRaptorResponse testResponse = (VRaptorResponse) ((TargetInstanceProxy) response) 
					.getTargetInstance(); 
			return super.getMockHttpServletResponse(testResponse); 
		} 
		return super.getMockHttpServletResponse(response); 
 
	} 
4
CodeRank