@@ -0,0 +1,1611 @@
+package gov.nih.nci.cabig.caaers.web;%0D%0A%0D%0Aimport org.springframework.web.servlet.ModelAndView;%0D%0A%0D%0Aimport gov.nih.nci.cabig.caaers.dao.StudyDao;%0D%0A%0D%0Apublic class StudyControllerTest extends WebTestCase %7B%0D%0A%0D%0A    private StudyController controller = new StudyController();%0D%0A    private StudyDao studyDao;%0D%0A%0D%0A    protected void setUp() throws Exception %7B%0D%0A        super.setUp();%0D%0A        studyDao = registerMockFor(StudyDao.class);%0D%0A        controller.setStudyDao(studyDao);%0D%0A    %7D%0D%0A    %0D%0A    public void testViewOnGet() throws Exception %7B%0D%0A        request.setMethod(%22GET%22);%0D%0A        ModelAndView mv = controller.handleRequest(request, response);%0D%0A        assertEquals(%22createStudy%22, mv.getViewName());%0D%0A    %7D%0D%0A%0D%0A    public void testViewOnGoodSubmit() throws Exception %7B%0D%0A        request.addParameter(%22multiInstitutionIndicator%22, %22true%22);%0D%0A        request.addParameter(%22shortTitle%22, %22Scott%22);%0D%0A        request.addParameter(%22longTitle%22, %22Male%22);%0D%0A        request.addParameter(%22description%22, %22Description%22);%0D%0A        request.addParameter(%22principalInvestigatorCode%22, %22Principal Investigator Code%22);%0D%0A        request.addParameter(%22principalInvestigatorName%22, %22Principal Investigator Name%22);%0D%0A        request.addParameter(%22primarySponsorCode%22, %22Primary Sponsor Code%22);%0D%0A        request.addParameter(%22primarySponsorName%22, %22Primary Sponsor Name%22);%0D%0A        request.addParameter(%22phaseCode%22, %22PhaseCode%22);%0D%0A        request.addParameter(%22reviewDate%22, %222006-01-01%22);%0D%0A        %0D%0A        ModelAndView mv = controller.handleRequest(request, response);%0D%0A        assertEquals(%22createStudy%22, mv.getViewName());%0D%0A    %7D    %0D%0A    %0D%0A%7D%0D%0A

Test class for StudyController.java