View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.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/ecl2.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 org.kuali.rice.krad.test;
17  
18  import org.kuali.rice.krad.web.controller.MethodAccessible;
19  import org.kuali.rice.krad.web.form.UifFormBase;
20  import org.springframework.validation.BindingResult;
21  import org.springframework.web.bind.annotation.ModelAttribute;
22  import org.springframework.web.bind.annotation.RequestMapping;
23  import org.springframework.web.servlet.ModelAndView;
24  
25  import javax.servlet.http.HttpServletRequest;
26  import javax.servlet.http.HttpServletResponse;
27  
28  /**
29   * Mock controller for unit tests.
30   *
31   * @author Kuali Rice Team (rice.collab@kuali.org)
32   */
33  public class MockController {
34  
35      @MethodAccessible
36      @RequestMapping()
37      public ModelAndView method1(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
38              HttpServletRequest request, HttpServletResponse response) {
39          return null;
40      }
41  
42      @RequestMapping()
43      public ModelAndView method2(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
44              HttpServletRequest request, HttpServletResponse response) {
45          return null;
46      }
47  
48      @RequestMapping()
49      public ModelAndView method3(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
50              HttpServletRequest request, HttpServletResponse response) {
51          return null;
52      }
53  
54      @RequestMapping()
55      public ModelAndView method4(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
56              HttpServletRequest request, HttpServletResponse response) {
57          return null;
58      }
59  
60      @RequestMapping()
61      public ModelAndView method5(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
62              HttpServletRequest request, HttpServletResponse response) {
63          return null;
64      }
65  
66      @RequestMapping()
67      public ModelAndView method6(@ModelAttribute("KualiForm") UifFormBase form, BindingResult result,
68              HttpServletRequest request, HttpServletResponse response) {
69          return null;
70      }
71  }