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 017 package edu.samplu.travel.krad.test; 018 019 import edu.samplu.common.WebDriverLegacyITBase; 020 021 import org.junit.Test; 022 023 /** 024 * test that configuration test view items work as expected 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 */ 028 public class ConfigurationTestViewWDIT extends WebDriverLegacyITBase { 029 030 @Override 031 public String getTestUrl() { 032 return "/kr-krad/configuration-test-view-uif-controller?viewId=ConfigurationTestView_KNS&methodToCall=start"; 033 } 034 035 /** bean id prefix in used in view */ 036 private String idPrefix = "ConfigurationTestView-ProgressiveRender-"; 037 038 /** bean id suffix for add line controls */ 039 String addLineIdSuffix = "InputField_add_control"; 040 041 042 /** 043 * test for text input field label - style setting and refreshWhenChanged for components not in collection 044 */ 045 @Test 046 public void testConfigurationTestView() throws Exception { 047 super.testConfigurationTestView(idPrefix); 048 passed(); 049 } 050 051 /** 052 * test adding a line to a collection which uses an add line that has spring expressions that are evaluated on refresh 053 * a specific time is set 054 */ 055 @Test 056 public void testAddLineWithSpecificTime() throws Exception{ 057 super.testAddLineWithSpecificTime(idPrefix, addLineIdSuffix); 058 passed(); 059 } 060 061 /** 062 * test adding a line to a collection which has the property refreshWhenChangedPropertyNames set 063 * on more than one component. 064 */ 065 @Test 066 public void testAddLineWithAllDay() throws Exception { 067 super.testAddLineWithAllDay(idPrefix, addLineIdSuffix); 068 passed(); 069 } 070 071 /** 072 * test adding a line to a collection which uses an add line that has spring expressions that are evaluated on refresh 073 * a specific time is set 074 */ 075 @Test 076 public void testAddLineAllDay() throws Exception{ 077 super.testAddLineAllDay(idPrefix, addLineIdSuffix); 078 passed(); 079 } 080 }