Coverage Report - edu.sampleu.travel.krad.controller.UILayoutTestController
 
Classes in this File Line Coverage Branch Coverage Complexity
UILayoutTestController
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl1.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package edu.sampleu.travel.krad.controller;
 17  
 
 18  
 import javax.servlet.http.HttpServletRequest;
 19  
 import javax.servlet.http.HttpServletResponse;
 20  
 
 21  
 import org.kuali.rice.krad.web.controller.UifControllerBase;
 22  
 import org.kuali.rice.krad.web.form.UifFormBase;
 23  
 import org.springframework.stereotype.Controller;
 24  
 import org.springframework.validation.BindingResult;
 25  
 import org.springframework.web.bind.annotation.ModelAttribute;
 26  
 import org.springframework.web.bind.annotation.RequestMapping;
 27  
 import org.springframework.web.bind.annotation.RequestMethod;
 28  
 import org.springframework.web.servlet.ModelAndView;
 29  
 
 30  
 import edu.sampleu.travel.krad.form.UILayoutTestForm;
 31  
 
 32  
 /**
 33  
  * Controller for the Test UI Page
 34  
  * 
 35  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 36  
  */
 37  0
 @Controller
 38  
 @RequestMapping(value = "/uilayouttest")
 39  0
 public class UILayoutTestController extends UifControllerBase {
 40  
 
 41  
         @Override
 42  
     protected UILayoutTestForm createInitialForm(HttpServletRequest request) {
 43  0
         return new UILayoutTestForm();
 44  
     }
 45  
 
 46  
         @Override
 47  
         @RequestMapping(params = "methodToCall=start")
 48  
         public ModelAndView start(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
 49  
                         HttpServletRequest request, HttpServletResponse response) {
 50  0
             UILayoutTestForm uiTestForm = (UILayoutTestForm) form;
 51  
 
 52  0
                 return super.start(uiTestForm, result, request, response);
 53  
         }
 54  
 
 55  
         @RequestMapping(method = RequestMethod.POST, params = "methodToCall=save")
 56  
         public ModelAndView save(@ModelAttribute("KualiForm") UILayoutTestForm uiTestForm, BindingResult result,
 57  
                         HttpServletRequest request, HttpServletResponse response) {
 58  
 
 59  0
                 return getUIFModelAndView(uiTestForm, uiTestForm.getViewId(), "page2");
 60  
         }
 61  
         
 62  
         @RequestMapping(method = RequestMethod.POST, params = "methodToCall=close")
 63  
         public ModelAndView close(@ModelAttribute("KualiForm") UILayoutTestForm uiTestForm, BindingResult result,
 64  
                         HttpServletRequest request, HttpServletResponse response) {
 65  
 
 66  0
                 return getUIFModelAndView(uiTestForm, uiTestForm.getViewId(), "page1");
 67  
         }
 68  
 
 69  
 }