@@ -0,0 +1,1232 @@
+package edu.northwestern.bioinformatics.studycalendar.web;%0A%0Aimport org.easymock.classextension.EasyMock;%0A%0A//import static org.easymock.EasyMock.expectLastCall;%0A//import static org.easymock.EasyMock.notNull;%0Aimport static org.easymock.classextension.EasyMock.*;%0Aimport org.springframework.web.servlet.ModelAndView;%0A%0A/**%0A * @author Rhett Sutphin%0A */%0Apublic class LoginControllerTest extends ControllerTestCase %7B%0A    private LoginController controller;%0A   %0A%0A    protected void setUp() throws Exception %7B%0A        super.setUp();%0A        controller = new LoginController();%0A    %7D%0A%0A    public void testModelAndView() throws Exception %7B%0A        %0A    %7D%0A    public void testViewOnGet() throws Exception %7B%0A        request.setMethod(%22GET%22);%0A        ModelAndView view = controller.handleRequest(request, response);%0A        assertEquals(%22login%22, view.getViewName());%0A    %7D%0A%0A    public void testViewOnSubmit() throws Exception %7B%0A        String userIdVal = %22StudyCal1%22;%0A        String passwordVal = %22StudyCal1%22;%0A        request.addParameter(%22userId%22, userIdVal);%0A        request.addParameter(%22password%22, passwordVal);%0A        ModelAndView mv = controller.handleRequest(request, response);%0A        assertEquals(%22login%22, mv.getViewName());%0A    %7D%0A %0A%7D%0A

test case login controller