View Javadoc

1   /**
2    * Copyright 2005-2013 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 edu.samplu.admin.test;
17  
18  import java.util.List;
19  
20  import org.junit.Test;
21  
22  /**
23   * tests the Parameter Type section in Rice.
24   * 
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   */
27  public class ParameterTypeNavIT extends AdminTmplMthdSTNavBase {
28      String docId;
29      String parameterType;
30      String parameterCode;
31  
32      @Override
33      protected String getLinkLocator() {
34          return "Parameter Type";
35      }
36  
37      @Test
38      public void testParameterType() throws Exception {
39             
40          //Create New
41          super.gotoCreateNew();
42          List<String> params;
43          params=super.testCreateNewParameterType(docId, parameterType,parameterCode);
44      
45          //Lookup
46          super.gotoMenuLinkLocator();
47          selectFrame("iframeportlet");
48          params=super.testLookUpParameterType(params.get(0), params.get(1),params.get(2));
49  
50          //edit
51          params=super.testEditParameterType(params.get(0), params.get(1),params.get(2));
52          
53          //Verify if its edited
54          super.gotoMenuLinkLocator();
55          params=super.testLookUpParameterType(params.get(0), params.get(1),params.get(2));
56  
57          //copy
58          params=super.testCopyParameterType(params.get(0), params.get(1),params.get(2));
59          
60          //Verify if its copied
61          super.gotoMenuLinkLocator();
62          super.testVerifyCopyParameterType(params.get(0), params.get(1),params.get(2));
63   
64      }
65  }