001    /**
002     * Copyright 2005-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package edu.samplu.admin.test;
017    
018    import edu.samplu.common.ITUtil;
019    import org.junit.Test;
020    
021    /**
022     * tests the Component section in Rice.
023     * @deprecated
024     * @author Kuali Rice Team (rice.collab@kuali.org)
025     */
026    public class ComponentNavIT extends AdminTmplMthdSTNavBase {
027        String docId;
028        String componentName;
029        String componentCode;
030    
031        @Override
032        protected String getLinkLocator() {
033            return "Component";
034        }
035    
036        @Test
037        public void testComponentParameter() throws Exception {
038            gotoCreateNew();
039            componentName = "TestName" + ITUtil.DTS_TWO;
040            componentCode = "TestCode" + ITUtil.DTS_TWO;
041    
042            docId = testCreateNewComponent(componentName, componentCode);
043    
044            //Lookup
045            gotoMenuLinkLocator();
046            selectFrameIframePortlet();
047            testLookUpComponent(docId, componentName, componentCode);
048    
049            testEditComponent(docId, componentName, componentCode);
050            
051            //Verify if its edited
052            gotoMenuLinkLocator();
053            testVerifyEditedComponent(docId, componentName, componentCode);
054    
055            testCopyComponent(docId, componentName + "copy", componentCode + "copy");
056            
057            gotoMenuLinkLocator();
058            testVerifyCopyComponent(docId, componentName + "copy", componentCode + "copy");
059        }
060    }