1 /* 2 * Copyright 2005-2013 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 17 package edu.samplu.travel.krad.test; 18 19 import edu.samplu.common.WebDriverLegacyITBase; 20 21 import org.junit.Test; 22 23 /** 24 * test that configuration test view items work as expected 25 * 26 * @author Kuali Rice Team (rice.collab@kuali.org) 27 */ 28 public class ConfigurationTestViewWDIT extends WebDriverLegacyITBase { 29 30 @Override 31 public String getTestUrl() { 32 return "/kr-krad/configuration-test-view-uif-controller?viewId=ConfigurationTestView_KNS&methodToCall=start"; 33 } 34 35 /** bean id prefix in used in view */ 36 private String idPrefix = "ConfigurationTestView-ProgressiveRender-"; 37 38 /** bean id suffix for add line controls */ 39 String addLineIdSuffix = "InputField_add_control"; 40 41 42 /** 43 * test for text input field label - style setting and refreshWhenChanged for components not in collection 44 */ 45 @Test 46 public void testConfigurationTestView() throws Exception { 47 super.testConfigurationTestView(idPrefix); 48 passed(); 49 } 50 51 /** 52 * test adding a line to a collection which uses an add line that has spring expressions that are evaluated on refresh 53 * a specific time is set 54 */ 55 @Test 56 public void testAddLineWithSpecificTime() throws Exception{ 57 super.testAddLineWithSpecificTime(idPrefix, addLineIdSuffix); 58 passed(); 59 } 60 61 /** 62 * test adding a line to a collection which has the property refreshWhenChangedPropertyNames set 63 * on more than one component. 64 */ 65 @Test 66 public void testAddLineWithAllDay() throws Exception { 67 super.testAddLineWithAllDay(idPrefix, addLineIdSuffix); 68 passed(); 69 } 70 71 /** 72 * test adding a line to a collection which uses an add line that has spring expressions that are evaluated on refresh 73 * a specific time is set 74 */ 75 @Test 76 public void testAddLineAllDay() throws Exception{ 77 super.testAddLineAllDay(idPrefix, addLineIdSuffix); 78 passed(); 79 } 80 }