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 org.junit.Test;
019
020 /**
021 * JUnit implementation of ComponentSTJUnitBase that goes directly to the page under test by a bookmarkable url,
022 * avoiding navigation. In the future the idea is to generate this class using the test methods
023 * from ComponentAbstractSmokeTestBase and following the simple pattern of <pre>super.testTestMethod(this);</pre>
024 *
025 * @author Kuali Rice Team (rice.collab@kuali.org)
026 */
027 public class ComponentSTJUnitBkMrkGen extends ComponentSTJUnitBase {
028
029 @Override
030 public String getTestUrl() {
031 return BOOKMARK_URL;
032 }
033
034 @Override
035 protected void gotoTest() throws Exception {
036 bookmark();
037 }
038
039 /**
040 * {@link edu.samplu.admin.test.ComponentAbstractSmokeTestBase#testComponentCreateNewCancelBookmark(edu.samplu.common.Failable)}
041 * @throws Exception
042 */
043 @Test
044 public void testCreateNewCancelComponentBookmark() throws Exception {
045 testComponentCreateNewCancelBookmark(this);
046 }
047
048 /**
049 * {@link ComponentAbstractSmokeTestBase#testComponentParameterBookmark(edu.samplu.common.Failable)}
050 * @throws Exception
051 */
052 @Test
053 public void testComponentParameterBookmark() throws Exception {
054 testComponentParameterBookmark(this);
055 }
056 }