001/**
002 * Copyright 2005-2015 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 */
016package edu.sampleu.kim.api.identity;
017
018/**
019 * Created by sona on 11/5/14.
020 */
021/**
022 * Copyright 2005-2014 The Kuali Foundation
023 *
024 * Licensed under the Educational Community License, Version 2.0 (the "License");
025 * you may not use this file except in compliance with the License.
026 * You may obtain a copy of the License at
027 *
028 * http://www.opensource.org/licenses/ecl2.php
029 *
030 * Unless required by applicable law or agreed to in writing, software
031 * distributed under the License is distributed on an "AS IS" BASIS,
032 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
033 * See the License for the specific language governing permissions and
034 * limitations under the License.
035 */
036
037import edu.sampleu.admin.AdminTmplMthdAftNavBase;
038import org.kuali.rice.testtools.common.JiraAwareFailable;
039import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
040import org.kuali.rice.testtools.selenium.WebDriverUtils;
041
042
043/**
044 * @author Kuali Rice Team (rice.collab@kuali.org)
045 */
046public abstract class IdentityRoleSaveAndReloadAftBase extends AdminTmplMthdAftNavBase {
047
048    /**
049     * ITUtil.PORTAL + "?channelTitle=Role&channelUrl="
050     * + WebDriverUtils.getBaseUrlString() + ITUtil.KNS_LOOKUP_METHOD + "org.kuali.rice.kim.impl.role.RoleBo&docFormKey=88888888&returnLocation=" +
051     * ITUtil.PORTAL_URL + ITUtil.HIDE_RETURN_LINK;
052     */
053    public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Role&channelUrl="
054            + WebDriverUtils.getBaseUrlString() + AutomatedFunctionalTestUtils.KNS_LOOKUP_METHOD +
055            "org.kuali.rice.kim.impl.role.RoleBo&docFormKey=88888888&returnLocation=" +
056            AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK_FALSE + AutomatedFunctionalTestUtils.SHOW_MAINTENANCE_LINKS;
057
058    @Override
059    protected String getBookmarkUrl() {
060        return BOOKMARK_URL;
061    }
062
063    /**
064     * {@inheritDoc}
065     * Role
066     * @return
067     */
068    @Override
069    protected String getLinkLocator() {
070        return "Role";
071    }
072
073    public void testIdentityRoleSaveAndReloadBookmark(JiraAwareFailable failable) throws Exception {
074        testIdentityRoleSaveAndReload();
075        passed();
076    }
077
078    public void testIdentityRoleSaveAndReloadNav(JiraAwareFailable failable) throws Exception {
079        testIdentityRoleSaveAndReload();
080        passed();
081    }
082}
083