1 /** 2 * Copyright 2005-2016 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.sampleu.kim.api.identity; 17 18 /** 19 * Created by sona on 11/5/14. 20 */ 21 /** 22 * Copyright 2005-2014 The Kuali Foundation 23 * 24 * Licensed under the Educational Community License, Version 2.0 (the "License"); 25 * you may not use this file except in compliance with the License. 26 * You may obtain a copy of the License at 27 * 28 * http://www.opensource.org/licenses/ecl2.php 29 * 30 * Unless required by applicable law or agreed to in writing, software 31 * distributed under the License is distributed on an "AS IS" BASIS, 32 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 33 * See the License for the specific language governing permissions and 34 * limitations under the License. 35 */ 36 37 import edu.sampleu.admin.AdminTmplMthdAftNavBase; 38 import org.kuali.rice.testtools.common.JiraAwareFailable; 39 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils; 40 import org.kuali.rice.testtools.selenium.WebDriverUtils; 41 42 43 /** 44 * @author Kuali Rice Team (rice.collab@kuali.org) 45 */ 46 public abstract class IdentityRoleSaveAndReloadAftBase extends AdminTmplMthdAftNavBase { 47 48 /** 49 * ITUtil.PORTAL + "?channelTitle=Role&channelUrl=" 50 * + WebDriverUtils.getBaseUrlString() + ITUtil.KNS_LOOKUP_METHOD + "org.kuali.rice.kim.impl.role.RoleBo&docFormKey=88888888&returnLocation=" + 51 * ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK; 52 */ 53 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Role&channelUrl=" 54 + WebDriverUtils.getBaseUrlString() + AutomatedFunctionalTestUtils.KNS_LOOKUP_METHOD + 55 "org.kuali.rice.kim.impl.role.RoleBo&docFormKey=88888888&returnLocation=" + 56 AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK_FALSE + AutomatedFunctionalTestUtils.SHOW_MAINTENANCE_LINKS; 57 58 @Override 59 protected String getBookmarkUrl() { 60 return BOOKMARK_URL; 61 } 62 63 /** 64 * {@inheritDoc} 65 * Role 66 * @return 67 */ 68 @Override 69 protected String getLinkLocator() { 70 return "Role"; 71 } 72 73 public void testIdentityRoleSaveAndReloadBookmark(JiraAwareFailable failable) throws Exception { 74 testIdentityRoleSaveAndReload(); 75 passed(); 76 } 77 78 public void testIdentityRoleSaveAndReloadNav(JiraAwareFailable failable) throws Exception { 79 testIdentityRoleSaveAndReload(); 80 passed(); 81 } 82 } 83