Code example for ServletWebRequest

0
 
	@Before 
	public void setUp() { 
		this.handler = new ViewMethodReturnValueHandler(); 
		this.mavContainer = new ModelAndViewContainer(); 
		this.webRequest = new ServletWebRequest(new MockHttpServletRequest()); 
	} 
 
	@Test 
	public void supportsReturnType() throws Exception { 
		assertTrue(this.handler.supportsReturnType(createReturnValueParam("view"))); 
	} 
 
	@Test 
	public void returnView() throws Exception { 
		InternalResourceView view = new InternalResourceView("testView"); 
		this.handler.handleReturnValue(view, createReturnValueParam("view"), this.mavContainer, this.webRequest); 
 
		assertSame(view, this.mavContainer.getView()); 
	} 
Connect your IDE to all the code out there  Get Codota for Java