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 */
016package edu.samplu.admin.test;
017
018import edu.samplu.common.ITUtil;
019import org.junit.Test;
020
021/**
022 * JUnit implementation of XMLIngesterSTJUnitBase that navigates through the UI to the page under test.  In the future
023 * the idea is to generate this class using the test methods from XMLIngesterAbstractSmokeTestBase and following the simple pattern of
024 * <pre>super.testMethodNav(this);</pre>
025 *
026 * <pre>mvn -f rice-middleware/sampleapp/pom.xml -Pstests failsafe:integration-test -Dremote.public.url=env7.rice.kuali.org -Dit.test=XMLIngesterSTJUnitNavGen -DXMLIngester.groupId=2008 -DXMLIngester.userIncludeDTSinPrefix=false -DXMLIngester.userCntBegin=0 -DXMLIngester.userCnt=600  -DXMLIngester.userPrefix=loadtester -Dremote.driver.dontTearDown=y</pre>
027 *
028 * @author Kuali Rice Team (rice.collab@kuali.org)
029 */
030public class XmlIngesterKradSTJUnitBkMrkGen extends XMLIngesterSTJUnitBase {
031
032    public XmlIngesterKradSTJUnitBkMrkGen(){
033        super();
034        this.setUiFramework(ITUtil.REMOTE_UIF_KRAD);
035    }
036
037    @Override
038    public String getTestUrl() {
039//        return BOOKMARK_URL;
040//        return "/kr-login/login?methodToCall=start&viewId=DummyLoginView&dataObjectClassName=org.kuali.rice.krad.web.login.DummyLoginForm&returnLocation=%2Fkr-krad%2Fkradsampleapp%3FviewId%3DKradSampleAppHome%26methodToCall%3Dstart&pageId=LoginPage";
041// /kr-krad/ingester?methodToCall=start&viewId=XmlIngester&dataObjectClassName=org.kuali.rice.core.web.impex.XmlIngesterForm&returnLocation=%2Fkr-krad%2Fkradsampleapp%3FviewId%3DKradSampleAppHome%26methodToCall%3Dstart
042        return "/kr-krad/ingester?methodToCall=start&viewId=XmlIngester&dataObjectClassName=org.kuali.rice.krad.labs.fileUploads.XmlIngesterForm&returnLocation=%2Fkr-krad%2Fkradsampleapp%3FviewId%3DKradSampleAppHome%26methodToCall%3Dstart";
043    }
044
045    @Test
046    public void testXmlIngesterSuccessfulFileUploadBookmark() throws Exception {
047        testIngestionBookmark(this);
048    }
049}