package .webapp.action; import java.util.Map; import javax.servlet.http.HttpServletResponse; import .Constants; import .webapp.action.BaseControllerTestCase; import org.springframework.web.servlet.ModelAndView; import org.springframework.mock.web.MockHttpServletRequest; public class ControllerTest extends BaseControllerTestCase { public void testHandleRequest() throws Exception { Controller c = (Controller) applicationContext.getBean("Controller"); ModelAndView mav = c.handleRequest(new MockHttpServletRequest(), (HttpServletResponse) null); Map m = mav.getModel(); assertNotNull(m.get(Constants._LIST)); assertEquals(mav.getViewName(), "List"); } }